Custom manipulator pointer problem

42 views
Skip to first unread message

Andy Phillips

unread,
Feb 10, 2014, 2:32:46 PM2/10/14
to python_in...@googlegroups.com
I'm trying to add a custom manipulator node to a manipulator container in python.

The MPxManipContainer.addMPxManipulatorNode method takes an argument which is a pointer by reference of type MPxManipulatorNode.

From the docs:

MStatus addMPxManipulatorNode(const MString & manipTypeName, const MString & manipName, MPxManipulatorNode *& proxyManip)

From a C++ example:

MPxManipulatorNode *proxyManip = 0;
MString manipTypeName("singleLineManip");
MString manipName("rightLineManip");
status
= addMPxManipulatorNode( manipTypeName, manipName, proxyManip );

I've tried using MScriptUtil with a pointer to int, short, uint types with no success. It really wants a pointer to a MPxManipulatorNode.

Anyone have any ideas?

Thanks
Andy
Reply all
Reply to author
Forward
0 new messages