Get an object transformation


#1

Hi,

I would like to know what is the transformation of an object in Doc events. In other words, when we drag and drop an object, get this transform. Is it possible?

Thanks,

Rafa


(Dale Fugier) #2

The C++ SDK has CRhinoOnTransformObject and CRhinoAfterTransformObject events that are not exposed to RhinoCommon. I’ll add these to the to-do list for a future Rhino service release.

If you attache user data to an object and the user data object overrides Rhino.DocObjects.Custom.UserData.OnTransform, then this overridden function be called, with the transform being applied, when an object is moved, for example.


(Dale Fugier) #3

http://mcneel.myjetbrains.com/youtrack/issue/RH-28259