|
Hi folks, I’m trying to implement setting some user properties on an object after it is cloned but I need some help accessing the callParams, and then the node.
The documentation says that the CallParam for NOTIFY_POST_NODES_CLONED is a pointer to this struct:
struct{ INodeTab* origNodes; INodeTab* clonedNodes; CloneType cloneType;}
But I don’t know how to deal with this in my C#.Net plugin.
I have found some code to marshal the infoPtr but I am stuck regarding the ObjPtr
private void ObjectCloned(IntPtr ObjPtr, IntPtr infoPtr)
{
IGlobal global = Autodesk.Max.GlobalInterface.Instance;
INotifyInfo info = global.NotifyInfo.Marshal(infoPtr);
[edit*]
I have done some more investigations and perhaps what I’m after is not to interpret the ObjPtr but to interpret the info.CallParams. Either way I need some advice on how to marshal the ptr to a struct as defined above.
[/edit*]
I’m using Windows7, Max 2012, + subscription advantage pack.
Any help greatly appreciated.
Cheers
3DSMax 2012 with subscription advantage pack / Windows 7 Enterprise
|