I’m making a plugin that attaches data to an Object (ClippingPlane in this case).
This data has property that I want to be unique amongst all the userdata instances.
If an object is being copied, I would like to change this property to some unique value.
The “OnDuplicate” method is called both on “move” and “copy” so I don’t know whether I should change this prop or not.
Is there a way to know the difference?
Also, is there some way to relate userdata to the object containing it?
I could add the object Guid to it but I’ll have the same problem with the OnDuplicate event.
Also, OnTransform doesn’t tell you which object the transformation is applied to.
I have to take some properties from the object geometry itself but can’t store it in a precalculated form in the userdata. (not easy to change it from the transformation matrix)
How should one go about this stuff?