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;
}--
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_m...@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.
status = syntax.addFlag(kShortShapeName, kLongShapeName, MSyntax::kString);
if (status != MStatus::kSucces){
MGlobal::displayError("ERROR: ...");
}
status =syntax.addFlag(...syntax.addFlag(...In fact I tried a lot of things to try to run my plugin. The first post is the last test I did and it's a copy / paste of an example of the API. As Justin said with this code I do not check the return of the addFlag command. The second post is the code that allowed me to check and see the function addFlag is false. But as it is a false it does not work ... I did a test. A plugin that does nothing, I just add the flags and I look if it works in Maya. And it works ... So I do not understand why in my plugin it does not work and why the "neutral" plugin it works ...
--
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/888fca36-87fa-4bc9-b3c0-e8bc7a74bd2e%40googlegroups.com.