MSyntax ToggleLocatorRender::newSyntax () { MSyntax syntax; syntax.addFlag("-e", "-enable", MSyntax::kString); syntax.makeFlagMultiUse("-e"); syntax.addFlag("-d", "-disable", MSyntax::kString); syntax.makeFlagMultiUse("-d"); syntax.addFlag("-t", "-toggle", MSyntax::kString); syntax.makeFlagMultiUse("-t"); return syntax; }
MSyntax StrandLengthCount::newSyntax() { MSyntax syntax; syntax.addFlag("-b", "-base", MSyntax::kString); syntax.makeFlagMultiUse("-b"); return syntax; }
MSyntax FillStrandGaps::newSyntax() { MSyntax syntax; syntax.addFlag("-t", "-target", MSyntax::kString); syntax.makeFlagMultiUse("-t"); return syntax; }
//----------------------------------------------------------------------------- // Purpose: MSyntax factory for the command // Output : A Maya MSyntax class describing command's command line syntax //----------------------------------------------------------------------------- MSyntax CVstSmdIOCmd::SyntaxFactory() { MSyntax mSyntax; mSyntax.addFlag( kOptHelp, "help" ); mSyntax.addFlag( kOptFilename, "filename", MSyntax::kString ); mSyntax.addFlag( kOptGame, "game", MSyntax::kString ); mSyntax.addFlag( kOptImport, "import" ); mSyntax.addFlag( kOptOrigin, "origin", MSyntax::kDouble, MSyntax::kDouble, MSyntax::kDouble ); mSyntax.addFlag( kOptAngles, "angles", MSyntax::kDouble, MSyntax::kDouble, MSyntax::kDouble ); mSyntax.addFlag( kOptVmf, "valveMapFile" ); mSyntax.addFlag( kOptTextureArchive, "textureArchive", MSyntax::kString ); mSyntax.addFlag( kOptImportSkeleton, "importSkeleton", MSyntax::kBoolean ); mSyntax.addFlag( kOptImportType, "importType", MSyntax::kString ); mSyntax.addFlag( kOptExport, "export" ); mSyntax.addFlag( kOptExportType, "exportType", MSyntax::kString ); mSyntax.makeFlagMultiUse( kOptExportType ); mSyntax.addFlag( kOptFrameStart, "frameStart", MSyntax::kDouble ); mSyntax.addFlag( kOptFrameEnd, "frameEnd", MSyntax::kDouble ); mSyntax.addFlag( kOptFrameInc, "frameIncrement", MSyntax::kDouble ); mSyntax.addFlag( kOptSelection, "selection" ); mSyntax.addFlag( kOptUpAxis, "upAxis", MSyntax::kString ); mSyntax.addFlag( kOptNodePrefix, "nodePrefix", MSyntax::kString ); mSyntax.addFlag( kOptRemovePrefix, "removePrefix", MSyntax::kString ); mSyntax.addFlag( kOptExportInvisible, "exportInvisible" ); mSyntax.addFlag( kOptPrettyPrint, "prettyPrint", MSyntax::kBoolean ); mSyntax.addFlag( kOptWorld, "world" ); mSyntax.addFlag( kOptDoubleSided, "doubleSided" ); mSyntax.addFlag( kOptQci, "qciExport", MSyntax::kString ); mSyntax.addFlag( kOptMaterials, "materials" ); mSyntax.addFlag( kOptMaterialSrc, "materialSrc" ); mSyntax.addFlag( kOptMaterialVtf, "materialVtf" ); mSyntax.addFlag( kOptMaterialVmt, "materialVmt" ); mSyntax.addFlag( kOptRelativeMaterials, "relativeMaterials" ); mSyntax.addFlag( kOptQc, "qcCreate" ); mSyntax.addFlag( kOptQcCollapseBones, "qcCollapseBones" ); mSyntax.addFlag( kOptQcCenterBonesOnVerts, "qcCenterBonesOnVerts" ); mSyntax.addFlag( kOptQcSkipBonesInBBox, "qcSkipBonesInBBox" ); mSyntax.addFlag( kOptRunStudiomdl, "studiomdl" ); mSyntax.addFlag( kOptParents, "parents" ); mSyntax.addFlag( kOptBindCurrent, "bindCurrent" ); mSyntax.useSelectionAsDefault( true ); mSyntax.setObjectType( MSyntax::kSelectionList ); return mSyntax; }
MSyntax AlembicExportCommand::createSyntax() { MSyntax syntax; syntax.addFlag("-h", "-help"); syntax.addFlag("-j", "-jobArg", MSyntax::kString); syntax.makeFlagMultiUse("-j"); syntax.enableQuery(false); syntax.enableEdit(false); return syntax; }
MSyntax ngSkinRelax::syntaxCreator(){ MSyntax result; result.useSelectionAsDefault(true); result.setObjectType(MSyntax::kSelectionList,1); result.addFlag(FlagNames::NUMSTEPS, "-numSteps", MSyntax::kLong); result.addFlag(FlagNames::STEPSIZE, "-stepSize", MSyntax::kDouble); result.addFlag(FlagNames::PRESERVE_LOCKED_INFLUENCES, "-preserveLockedInfluences", MSyntax::kBoolean); result.addFlag(FlagNames::ASSOCIATE_VOLUME, "-associateByVolume", MSyntax::kBoolean); result.addFlag(FlagNames::ASSOCIATE_VOLUME_RADIUS, "-associateByVolumeRadius", MSyntax::kDouble); result.addFlag(FlagNames::SOFT_SELECTION_RADIUS, "-softSelectionRadius", MSyntax::kDouble); result.addFlag(FlagNames::NATIVE_SOFT_SELECTION, "-nativeSoftSelection", MSyntax::kBoolean); result.addFlag(FlagNames::WEIGHT_LIMIT, "-weightLimit", MSyntax::kLong); result.addFlag(FlagNames::LOCKED_VERTS, "-lockedVert", MSyntax::kSelectionItem); result.makeFlagMultiUse(FlagNames::LOCKED_VERTS); result.addFlag(FlagNames::INVISIBLE_VERTS, "-invisibleVert", MSyntax::kSelectionItem); result.makeFlagMultiUse(FlagNames::INVISIBLE_VERTS); return result; }
MSyntax AbcExport::createSyntax() { MSyntax syntax; syntax.addFlag("-v", "-verbose", MSyntax::kNoArg); syntax.addFlag("-h", "-help", MSyntax::kNoArg); syntax.addFlag("-prs", "-preRollStartFrame", MSyntax::kDouble); syntax.addFlag("-duf", "-dontSkipUnwrittenFrames", MSyntax::kNoArg); syntax.addFlag("-j", "-jobArg", MSyntax::kString); syntax.makeFlagMultiUse("-j"); syntax.enableQuery(true); syntax.enableEdit(false); return syntax; }
MSyntax convertGeometryCache::cmdSyntax() /////////////////////////////////////////////////////////////////////////////// // // Description : ( public method ) // Creates a syntax object // /////////////////////////////////////////////////////////////////////////////// { MSyntax syntax; syntax.addFlag( SFLAG_TOASCII, LFLAG_TOASCII, MSyntax::kNoArg ); syntax.addFlag( SFLAG_FILE, LFLAG_FILE, MSyntax::kString ); syntax.makeFlagMultiUse( SFLAG_FILE ); syntax.enableQuery( false ); syntax.enableEdit( false ); return syntax; }
MSyntax usdImport::createSyntax() { MSyntax syntax; syntax.addFlag("-v" , "-verbose", MSyntax::kNoArg); syntax.addFlag("-f" , "-file" , MSyntax::kString); syntax.addFlag("-p" , "-parent" , MSyntax::kString); syntax.addFlag("-shd" , "-shadingMode" , MSyntax::kString); syntax.addFlag("-ani", "-readAnimData" , MSyntax::kBoolean); syntax.addFlag("-pp", "-primPath" , MSyntax::kString); syntax.addFlag("-var" , "-variant" , MSyntax::kString, MSyntax::kString); syntax.addFlag("-ar" , "-assemblyRep" , MSyntax::kString); syntax.makeFlagMultiUse("variant"); syntax.enableQuery(false); syntax.enableEdit(false); return syntax; }