Does "invalidateBoundingBoxes" work on a DzGroupNode?

V3DigitimesV3Digitimes Posts: 3,057

Hello,

I'm finishing a script where some nodes are gathered in a DzGroupNode, and then translated in the scene. This results in issues with the group bounding boxes (which seem to use the location before translation and after translation - this can make big bounding boxes for the group). I was trying to use "invalidateBoundingBoxes" so that the bounding box is recalculated, but there is no effect on the bounding box. I'd like to know if it can work on a node which is a group.

To test this I simply select agroup with a bad bounding box in the scene and do :

var myNode = Scene.getPrimarySelection(); myNode.invalidateBoundingBoxes(false);

Thanks if you have any idea. Otherwise I'll try other things, but this one looked so good for what I wanted to do.

Post edited by V3Digitimes on
Sign In or Register to comment.