Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Collection with Text doesn’t work in compas_view2 #164

Open
@ZacZhangzhuo

Description

@ZacZhangzhuo

COPY OF: https://forum.compas-framework.org/t/collection-with-text-doesnt-work-in-compas-view2/720

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!

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions