Community
How can write in c#
This is c++ ;
INodeTab instanceAndRef;
IInstanceMgr::GetInstanceMgr()->GetInstances(node, instanceAndRef);
I would say something like this, but the structure of the SDK wrapper is so strange, I'm always confused.
Autodesk.Max.IGlobal _global = Autodesk.Max.GlobalInterface.Instance;
Autodesk.Max.IIInstanceMgr _instanceManager = _global.IInstanceMgr.InstanceMgr;
Autodesk.Max.IINodeTab instancesHolder = _global.NodeTab.Create();
_instanceManager.GetInstances(_node, instancesHolder);