|
Hi, how can I access the Link Constraint controller on a object?
I try using the ILinkCtrl class but with no success.
Here’s what the documentation say about it:
This class represents the interface to the Link Controller. You can obtain a pointer to the link controller interface using; GetLinkConstInterface(cd). This macro will return: (LinkConstTransform*)(CD)->GetFPInterface(LINK_CONSTRAINT_INTERFACE).
However, the class LinkConstTransform is not declared anywhere in the sdk. :|
I however found it in “\maxsdk\samples\controllers\Link_cnstrnt.h”.
Does anyone have a hint?
I’m using 3dsmax 2010 sdk.
|
|
|
|
Ok I found it, my error was to try to call GetInterface on a INode* instead of a Control*.
ILinkCtrl* pILinkCtrl = (ILinkCtrl*)_pNode->GetTMController()->GetInterface(LINK_CONSTRAINT_INTERFACE)
|
|
|