How to sample instances of ShapeGroup? #990
-
Hi there, I'm currently working on sampling shapes within my scene using the following code:
However, when the iteration reaches an instance of a ShapeGroup, specifically:
I encounter the following error: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @woAIxuexiSR A trivial, albeit inefficient, workaround would be to remove the instancing and just duplicate the shape in the scene description. I don't there is any other option, this has not been implemented. |
Beta Was this translation helpful? Give feedback.
Hi @woAIxuexiSR
A trivial, albeit inefficient, workaround would be to remove the instancing and just duplicate the shape in the scene description.
I don't there is any other option, this has not been implemented.
If you are interested in working on this, I don't believe that this would be a very difficult task. It should just be a matter of sampling a shape in the group, then sampling a position on that shape and finally applying the instance's transform to that position.