MSyntax deletedMessage::newSyntax() { MSyntax syntax; syntax.setObjectType(MSyntax::kSelectionList); syntax.setMinObjects(1); syntax.useSelectionAsDefault(true); return syntax; }
MSyntax linearFrictionCmd::newSyntax() { MSyntax syntax; syntax.addFlag(lfFlag,lfLongFlag,MSyntax::kDouble); return syntax; }
MSyntax OProtationFrictionCmd::newSyntax() { MSyntax syntax; syntax.addFlag(rfFlag,rfLongFlag,MSyntax::kDouble); return syntax; }
MStatus exampleCameraSetViewCmd::appendSyntax() // // Description: // Add syntax to the command. All of the parent syntax is added // before this call is made. // { MStatus ReturnStatus; MSyntax theSyntax = syntax(&ReturnStatus); if (MS::kSuccess != ReturnStatus) { MGlobal::displayError("Could not get the parent's syntax"); return ReturnStatus; } theSyntax.addFlag(kTestMultiPackInitFlag, kTestMultiPackInitFlagLong); theSyntax.addFlag(kTestMultiPackResultsFlag, kTestMultiPackResultsFlagLong); theSyntax.addFlag(kTestMultiPackClearFlag, kTestMultiPackClearFlagLong); return ReturnStatus; }
MSyntax restitutionCmd::newSyntax() { MSyntax syntax; syntax.addFlag(rstFlag,rstLongFlag,MSyntax::kDouble); return syntax; }
MSyntax stiffnessCmd::newSyntax() { MSyntax syntax; syntax.addFlag(stfFlag,stfLongFlag,MSyntax::kDouble); return syntax; }
MSyntax radiusCmd::newSyntax() { MSyntax syntax; syntax.addFlag(rFlag,rLongFlag,MSyntax::kDouble); return syntax; }
MSyntax ApplySequenceGui::newSyntax () { MSyntax syntax; syntax.addFlag("-t", "-target", MSyntax::kString); return syntax; }
MSyntax StrandLengthCount::newSyntax() { MSyntax syntax; syntax.addFlag("-b", "-base", MSyntax::kString); syntax.makeFlagMultiUse("-b"); return syntax; }
MSyntax peltOverlap::newSyntax() { MSyntax syntax; syntax.addFlag(kExitFlag, kExitFlagLong, MSyntax::kUnsigned); syntax.setObjectType(MSyntax::kStringObjects); return syntax; }
MSyntax RadiosityRenderer::newSyntax() { MStatus status; MSyntax syntax; syntax.addFlag( kDoNotClearBackground, kDoNotClearBackgroundLong ); CHECK_MSTATUS_AND_RETURN(status, syntax); return syntax; }
//====================================================================== // // Create default syntax and add command-specific syntax // MSyntax importMetadataCmd::cmdSyntax() { MSyntax syntax = metadataBase::cmdSyntax(); syntax.addFlag(flagString, flagStringLong, MSyntax::kString); return syntax; }
MSyntax ExtendStrand::newSyntax () { MSyntax syntax; syntax.addFlag("-b", "-base", MSyntax::kLong); syntax.addFlag("-t", "-target", MSyntax::kString); return syntax; }
MSyntax renderViewRenderRegion::newSyntax() { MStatus status; MSyntax syntax; syntax.addFlag( kDoNotClearBackground, kDoNotClearBackgroundLong ); CHECK_MSTATUS_AND_RETURN(status, syntax); return syntax; }
MSyntax FillStrandGaps::newSyntax() { MSyntax syntax; syntax.addFlag("-t", "-target", MSyntax::kString); syntax.makeFlagMultiUse("-t"); return syntax; }
MSyntax MeshControlCmd::newSyntax() { MSyntax syntax; MStatus s; s = syntax.addFlag(m_initFlag[1], m_initFlag[0], MSyntax::kNoArg); s = syntax.addFlag(m_nameFlag[1], m_nameFlag[0], MSyntax::kString); return syntax; }
MSyntax userMessage::newSyntax() { MSyntax syntax; syntax.addFlag( postFlag, postLongFlag, MSyntax::kString ); syntax.addFlag( registerFlag, registerLongFlag, MSyntax::kString ); syntax.addFlag( deregisterFlag, deregisterLongFlag, MSyntax::kString ); syntax.addFlag( testFlag, testLongFlag ); return syntax; }
MSyntax NeuronForMayaCmd::newSyntax() { MSyntax syntax; syntax.addFlag(kStartFlag, kStartFlagLong, MSyntax::kBoolean); syntax.addFlag(kDeviceNameFlag, kDeviceNameFlagLong, MSyntax::kString ); return syntax; }
MSyntax AlembicProfileResetCommand::createSyntax() { MSyntax syntax; syntax.enableQuery(false); syntax.enableEdit(false); return syntax; }
MSyntax UsdMayaUndoHelperCommand::createSyntax() { MSyntax syntax; syntax.enableQuery(false); syntax.enableEdit(false); return syntax; }
MSyntax particleCmd::newSyntax() { MSyntax syntax; syntax.addFlag(pxFlag,pxLongFlag,MSyntax::kDouble); syntax.addFlag(pyFlag,pyLongFlag,MSyntax::kDouble); syntax.addFlag(pzFlag,pzLongFlag,MSyntax::kDouble); return syntax; }
MSyntax AlembicProfileEndCommand::createSyntax() { MSyntax syntax; syntax.addFlag("-f", "-fileNameArg", MSyntax::kString); syntax.enableQuery(false); syntax.enableEdit(false); return syntax; }
// newSyntax // MSyntax eventTest::newSyntax() { MSyntax syntax; syntax.addFlag(kMessageFlag, kMessageFlagLong, MSyntax::kBoolean); syntax.setObjectType(MSyntax::kStringObjects); return syntax; }
MSyntax tm_polySplit::newSyntax() { MSyntax syntax; syntax.addFlag( loop_Flag, loop_LongFlag, MSyntax::kLong, MSyntax::kDouble);//, MSyntax::kLong); // - max count; syntax.addFlag( sel_Flag, sel_LongFlag); syntax.setObjectType( MSyntax::kSelectionList); syntax.useSelectionAsDefault( true); return syntax; }
MSyntax RetargetBase::newSyntax () { MSyntax syntax; syntax.addFlag("-p", "-perpendicular", MSyntax::kLong); syntax.addFlag("-b", "-base", MSyntax::kString); syntax.addFlag("-t", "-target", MSyntax::kString); return syntax; }
MSyntax GetMetaNodeConnectionCmd::newSyntax() { MSyntax syntax; syntax.addFlag(GetMetaNodeConnectionCmd::FileParam(), GetMetaNodeConnectionCmd::FileParamLong(), MSyntax::kString); syntax.addFlag(GetMetaNodeConnectionCmd::FileParam2(), GetMetaNodeConnectionCmd::FileParam2Long(), MSyntax::kString); return syntax; }
MSyntax classificationCommand::newSyntax() { MSyntax syntax; syntax.addFlag( selectedFlag, selectedLongFlag, MSyntax::kString ); syntax.addFlag( pathFlag, pathLongFlag, MSyntax::kString ); syntax.addFlag( selectedNumFlag, selectedNumLongFlag, MSyntax::kUnsigned); return syntax; }
MSyntax exportTerrain::newSyntax() { MSyntax syntax; //Adding the flags syntax.addFlag(kPhysicsFlag,kPhysicsFlagLong); return syntax; }
MStatus mengerCmd::doIt(const MArgList &args) { MSyntax syntax; syntax.addFlag(FLAG_SIZE, FLAG_SIZE_LONG, MSyntax::kDouble); syntax.addFlag(FLAG_ITER, FLAG_ITER_LONG, MSyntax::kUnsigned); MStatus stat = MStatus::kSuccess; MArgParser arg_parser(syntax, args, &stat); if (stat != MStatus::kSuccess) return stat; double size = 1.0f; stat = arg_parser.getFlagArgument(FLAG_SIZE, 0, size); unsigned int iterations = 3; stat = arg_parser.getFlagArgument(FLAG_ITER, 0, iterations); cube c; c.start.x = c.start.y = c.start.z = (float) -size; c.end = c.start * -1; std::vector<cube> cubes; dice_err::val dice_status = dice(c, iterations, cubes); if (dice_status == dice_err::success) { MGlobal::displayInfo("A Menger Sponge was created."); MString name; makeCubes(cubes, name, &stat); setResult(name); } else { MGlobal::displayError("A Menger Sponge could not be computed."); switch (dice_status) { case dice_err::invalid_param_err: MGlobal::displayError("dice was called with wrong arguments."); break; case dice_err::bounds_err: MGlobal::displayError("dice was called with erronous bounds."); break; case dice_err::memory_err: MGlobal::displayError("dice had an memory error."); break; case dice_err::success: /* Stop warnings. */ break; } } return stat; }
MSyntax AlembicResolvePathCommand::createSyntax() { MSyntax syntax; syntax.addFlag("-h", "-help"); syntax.addFlag("-f", "-fileNameArg", MSyntax::kString); syntax.enableQuery(false); syntax.enableEdit(false); return syntax; }