Hi everyone,

I try to create au plugin with MPxCommand.

I have classic code found on MSyntax api class exemple. My code:
MSyntax SSDRCommands::newSyntax() {

MStatus status;
MSyntax syntax;

syntax.addFlag(kShortShapeName, kLongShapeName, MSyntax::kString);
CHECK_MSTATUS_AND_RETURN(status, syntax);
syntax.addFlag(kShortNumJoints, kLongNumJoints, MSyntax::kLong);
CHECK_MSTATUS_AND_RETURN(status, syntax);
syntax.addFlag(kShortMaxInfluences, kLongMaxInfluences, MSyntax::kLong);
CHECK_MSTATUS_AND_RETURN(status, syntax);
syntax.addFlag(kShortNumIterations, kLongNumIterations, MSyntax::kLong);
CHECK_MSTATUS_AND_RETURN(status, syntax);
syntax.addFlag(kShortStartTime, kLongStartTime, MSyntax::kDouble);
CHECK_MSTATUS_AND_RETURN(status, syntax);
syntax.addFlag(kShortEndTime, kLongEndTime, MSyntax::kDouble);
CHECK_MSTATUS_AND_RETURN(status, syntax);

syntax.useSelectionAsDefault(false);

return syntax;

}


MStatus return false, but I don't understand why...
Anyone have a solution ?

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/4e85d611-7477-45c5-91bc-3c7e69b847b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to