compas-dev / compas_view2

Standalone viewer for COMPAS
https://compas.dev/compas_view2/
MIT License
6 stars 8 forks source link

sceneform.py - selection of child objects #186

Closed petrasvestartas closed 9 months ago

petrasvestartas commented 9 months ago

Feature Request

@ZacZhangzhuo @Licini It would be useful to have a selection of childs when clicked on the sceneform. Currently only one object is selected at a time, but it would be great to have the childs selected too.

I already tried to test different things on sceneform.py without luck. If you could at least point me how to implement this feature, I could also try it myself.

Details

Following is the image that describes the needed feature:

image

Is your feature request related to a problem? Please describe.

I think in general, sceneform could be useful with more features, that could help interact with the scene objects, e.g. giving extra methods when a tree object is right clicked.

ZacZhangzhuo commented 9 months ago

I think adding a multi-selection function might solve this problem. :) I have added a PR #189 . Check out the src/compas_view2/forms/sceneform.py file~

ZacZhangzhuo commented 9 months ago

hi @petrasvestartas I produced this example #190 that might be helpful for you :)