The below code works for me:
from compas_view2.shapes import Text
from compas_view2 import app
from compas_view2.objects import Collection
viewer = app.App()
t0 = Text("a", [0, 0, 0], height=50)
t1 = Text("123", [3, 0, 0], height=50)
t2 = Text("ABC", [3, 3, 0], height=100)
viewer.add(t0, color=(1, 0, 0))
viewer.add(t1)
viewer.add(t2)
viewer.show()
but using Collection
doesn’t:
from compas_view2.shapes import Text
from compas_view2 import app
from compas_view2.objects import Collection
viewer = app.App()
t0 = Text("a", [0, 0, 0], height=50)
t1 = Text("123", [3, 0, 0], height=50)
t2 = Text("ABC", [3, 3, 0], height=100)
viewer.add(Collection([t0,t1,t2]))
viewer.show()
Thanks for any help and reply!