Is there a way to store transformation matrix on any rhino geometry object point, polyline, mesh. So that when an object is manipulated in rhino e.g. moved, rotated, not deformed, the transformation matrix would be updated?
Softwares like Unity, Solidworks and others has such option:
Hi @dale, i’ve been following this with interest as it would be really useful for my work too and i have no way to build custom objects via a PlugIn.
I too would like to store a plane to an object upon creation and that plane should follow all object transforms. The new ObjectFrame in Rhino 8 does this, which is great.
But if the purpose is to use the plane so an object can be reset to it’s original position (on creation, as in your example script) after it has been transformed by the user, then the ObjectFrame will not give the expected results once the gumball was individually relocated.
This is because the gumball relocation (without transforming the object) seems to alter the ObjectFrame.
So please count my wish for a CustomObjectFrame which can be attached to the attributes in the same way as ObjectFrame. It should follow object transforms too but it should not be changed when the gumball is individually relocated. Of course if a user transforms (eg. moves) the object using the gumball, the CustomObjectFrame should reflect these changes.
looks like this thread is important to many other people On mcneel search bar there is very little you can find about this topic… @dale we want this new feature
I don’t understand how the CustomObjectFrame will help. If we provide it any plugin (not just yours) may use and modify it.
If you really need a frame only you control then you should save a plane/xform/whatever in UserData like I outlined here:
Not currently. I opened RH-85938 to fix it. When a new object is added it usually copies its attributes from some other object. In case of commands like Join/Explode you can get some funky results copying frames from the input. I think we need to tune that up for when something is copied.
UserData.Transform is for PlugIns only so it won’t be usable with Python scripting.
I would not mind. If i can store the CustomObjectFrame eg. with a key value which is required to retrieve it. Users will never be able to access it. If other devs would have access to it i wouln’t mind as well, they could use their own key.