PDA

View Full Version : Button creation in API


dbsmith
09-05-2006, 05:09 AM
Just need to create a simple button in the Attribute Editor of my custom Node, using the API.
I.e. have my float fields etc...but what can I use to create a button (like the reload button that comes attached to a file texture node)?
eg
myNode::detail = nAttr.create( "View_Detail", "vd", MFnNumericData::kInt, 5 );
myNode::outputMesh = tAttr.create("outMesh", "om", MFnMeshData::kMesh);
myNode::myButton = tAttr.create("Button", "btn", ????????????????????? );

Robert Bateman
09-05-2006, 08:27 AM
you can't do anything with the AE templates in the API, you need to use mel. you might want to do a call custom with the editor template command, and use an attrNavigation control

CGTalk Moderation
09-05-2006, 08:27 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.