Hello,
I am having a reference IControl icontrol wich is a "Transform: Position/Rotation/Scale" of ClassId(PRS_CONTROL_CLASS_ID, 0).
The icontrol.PositionController contains "Position: Linear Positition" of ClassId(LININTERP_POSITION_CLASS_ID, 0).
I am trying to obtain the IIKeyControl interface in the following way:
var keys = (IIKeyControl)icontrol.PositionController.GetInterface(InterfaceID.Keycontrol);
but I always get null from GetInterface. I have also tried InterfaceID.Keycontrol2 and IIKeyControl2 respectively with the same result.
Can anyone give me a clue how can I obtain access to IIKeyControl from a IControl?
My versions are MAX.NET1.2.7.0 and 3ds max 2011 x64.
Thanks,
zarusz