Beispiel #1
0
MSyntax
boingRbCmd::cmdSyntax()
{
    MSyntax syntax;
    syntax.enableQuery(false);
    syntax.enableEdit(false);
    
    syntax.addFlag("-h", "-help");
    syntax.addFlag("-set", "-setAttr", MSyntax::kString);
    syntax.addArg(MSyntax::kString);
    syntax.addFlag("-get", "-getAttr", MSyntax::kString);
    syntax.addArg(MSyntax::kString);
    syntax.addFlag("-add", "-addAttr", MSyntax::kString);
    syntax.addArg(MSyntax::kString);
    syntax.addFlag("-cr", "-create", MSyntax::kString);
    syntax.addArg(MSyntax::kString);
    syntax.addFlag("-del", "-delete", MSyntax::kString);
    syntax.addArg(MSyntax::kString);
    syntax.addFlag("-typ", "-type", MSyntax::kString);
    syntax.addArg(MSyntax::kString);
    syntax.addFlag("-ex", "-exists", MSyntax::kString);
    syntax.addArg(MSyntax::kString);
    syntax.addFlag("-ae", "-attributeExist", MSyntax::kString);
    syntax.addArg(MSyntax::kString);
    syntax.addFlag("-val", "-value");//, MSyntax::kDouble, MSyntax::kDouble, MSyntax::kDouble, MSyntax::kString, MSyntax::kLong );
    //syntax.addFlag("-val", "-value", MSyntax::kString);
    //syntax.addFlag("-val", "-value", MSyntax::kLong);
    syntax.addArg(MSyntax::kString);
    syntax.addArg(MSyntax::kLong);
    syntax.addArg(MSyntax::kDouble);
    
    return syntax;
}
Beispiel #2
0
MSyntax AbcImport::createSyntax()
{
    MSyntax syntax;

    syntax.addFlag("-d",    "-debug",        MSyntax::kNoArg);
    syntax.addFlag("-ftr",  "-fitTimeRange", MSyntax::kNoArg);
    syntax.addFlag("-h",    "-help",         MSyntax::kNoArg);
    syntax.addFlag("-m",    "-mode",         MSyntax::kString);
    syntax.addFlag("-rcs",  "-recreateAllColorSets", MSyntax::kNoArg);

    syntax.addFlag("-ct",   "-connect",          MSyntax::kString);
    syntax.addFlag("-crt",  "-createIfNotFound", MSyntax::kNoArg);
    syntax.addFlag("-rm",   "-removeIfNoUpdate", MSyntax::kNoArg);

    syntax.addFlag("-rpr",  "-reparent",     MSyntax::kString);
    syntax.addFlag("-sts",  "-setToStartFrame",  MSyntax::kNoArg);

    syntax.addFlag("-ft",   "-filterObjects",    MSyntax::kString);
    syntax.addFlag("-eft",  "-excludeFilterObjects",    MSyntax::kString);

    syntax.addArg(MSyntax::kString);

    syntax.enableQuery(true);
    syntax.enableEdit(false);

    return syntax;
}
Beispiel #3
0
MSyntax exportF3d::newSyntax()
{
    MSyntax syntax;
    MStatus stat;
    stat = syntax.addFlag("-st", "-startTime", MSyntax::kLong);ERRCHK;    
    stat = syntax.addFlag("-et", "-endTime", MSyntax::kLong);ERRCHK;  
    stat = syntax.addFlag("-o", "-outputPath", MSyntax::kString);ERRCHK; 
    stat = syntax.addFlag("-av", "-addVelocity", MSyntax::kNoArg);ERRCHK; 
    stat = syntax.addFlag("-ac", "-addColor",MSyntax::kNoArg);ERRCHK; 
    stat = syntax.addFlag("-ap", "-addPressure",MSyntax::kNoArg);ERRCHK; 
    stat = syntax.addFlag("-at", "-addTexture",MSyntax::kNoArg);ERRCHK; 
    stat = syntax.addFlag("-ns", "-numOversample",MSyntax::kLong);ERRCHK; 
    
    stat = syntax.addFlag("-d", "-debug");ERRCHK; 
    syntax.addFlag("-h", "-help");
    
    // DEFINE BEHAVIOUR OF COMMAND ARGUMENT THAT SPECIFIES THE MESH NODE:
    syntax.useSelectionAsDefault(true);
    stat = syntax.setObjectType(MSyntax::kSelectionList, 1);

    // MAKE COMMAND QUERYABLE AND NON-EDITABLE:
    syntax.enableQuery(false);
    syntax.enableEdit(false);


    return syntax;
}
Beispiel #4
0
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;
}
Beispiel #6
0
MSyntax AlembicProfileEndCommand::createSyntax()
{
   MSyntax syntax;
   syntax.addFlag("-f", "-fileNameArg", MSyntax::kString);
   syntax.enableQuery(false);
   syntax.enableEdit(false);

   return syntax;
}
MSyntax AlembicPolyMeshToSubdivCommand::createSyntax()
{
	MSyntax syntax;
	syntax.addFlag("-h", "-help");
	syntax.addFlag("-m", "-mesh", MSyntax::kString);
	syntax.enableQuery(false);
	syntax.enableEdit(false);

	return syntax;
}
MSyntax AlembicAssignInitialSGCommand::createSyntax()
{
   MSyntax syntax;
   syntax.addFlag("-h", "-help");
   syntax.addFlag("-m", "-mesh", MSyntax::kString);
   syntax.enableQuery(false);
   syntax.enableEdit(false);

   return syntax;
}
Beispiel #9
0
MSyntax AlembicResolvePathCommand::createSyntax()
{
   MSyntax syntax;
   syntax.addFlag("-h", "-help");
   syntax.addFlag("-f", "-fileNameArg", MSyntax::kString);
   syntax.enableQuery(false);
   syntax.enableEdit(false);

   return syntax;
}
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;
}
/// AlembicAssignFacesetCommand
MSyntax AlembicAssignFacesetCommand::createSyntax()
{
   MSyntax syntax;
   syntax.addFlag("-h", "-help");
   syntax.addFlag("-a", "-attribute", MSyntax::kString);
   syntax.addFlag("-m", "-mesh", MSyntax::kString);
   //syntax.addFlag("-x", "-xset", MSyntax::kString);
   syntax.enableQuery(false);
   syntax.enableEdit(false);

   return syntax;
}
Beispiel #12
0
MSyntax mshUtil::newSyntax()
{
	MSyntax syntax;

	syntax.addFlag("-i", "-input", MSyntax::kString);
	syntax.addFlag("-o", "-output", MSyntax::kString);

	syntax.enableQuery(false);
	syntax.enableEdit(false);

   return syntax;
}
void CVstAimCmd::SpecifySyntax( MSyntax &mSyntax, ValveMaya::CMSyntaxHelp & /* mSyntaxHelp */ )
{
	mSyntax.addFlag( kHelp, "help" );
	mSyntax.addFlag( kSelect, "select" );
	mSyntax.addFlag( kCreate, "create" );
	mSyntax.addFlag( kName, "name", MSyntax::kString );
	mSyntax.addFlag( kAim, "aim", MSyntax::kDouble, MSyntax::kDouble, MSyntax::kDouble );
	mSyntax.addFlag( kUp, "up", MSyntax::kDouble, MSyntax::kDouble, MSyntax::kDouble );

	mSyntax.setObjectType( MSyntax::kSelectionList );
	mSyntax.useSelectionAsDefault( true );
	mSyntax.enableEdit( false );
}
Beispiel #14
0
MSyntax depthMap::newSyntax() 
{
	MSyntax syntax;

	syntax.addFlag("-n", "-name", MSyntax::kString);
	syntax.addFlag("-sc", "-scenepath", MSyntax::kString);
	syntax.addFlag("-ca", "-camera", MSyntax::kString);
	
	syntax.enableQuery(false);
	syntax.enableEdit(false);

	return syntax;
}
MSyntax Molecule3Cmd::newSyntax()
{
    MSyntax syntax;

    syntax.addFlag( radiusFlag, radiusLongFlag, MSyntax::kDistance );
    syntax.addFlag( segsFlag, segsLongFlag, MSyntax::kLong );
    syntax.addFlag( ballRatioFlag, ballRatioLongFlag, MSyntax::kDouble );
	
	syntax.enableQuery( false );
	syntax.enableEdit( false );

	return syntax;
}
Beispiel #16
0
MSyntax HesperisCmd::newSyntax() 
{
	MSyntax syntax;

	syntax.addFlag("-w", "-write", MSyntax::kString);
	syntax.addFlag("-gm", "-growMesh", MSyntax::kString);
    syntax.addFlag("-fd", "-fieldDeform", MSyntax::kString);
    syntax.addFlag("-sm", "-selectedMesh", MSyntax::kNoArg);
	syntax.addFlag("-h", "-help", MSyntax::kNoArg);
	syntax.enableQuery(false);
	syntax.enableEdit(false);

	return syntax;
}
MSyntax
dHingeConstraintCmd::syntax()
{
    MSyntax syntax;
    syntax.enableQuery(false);
    syntax.enableEdit(false);

    syntax.addFlag("-n", "-name", MSyntax::kString);
  //  syntax.addFlag("-fn", "-filename", MSyntax::kString);
   // syntax.addFlag("-col", "-color", MSyntax::kString);
   // syntax.addFlag("-dia", "-diameter", MSyntax::kDouble);

    return syntax;
}
Beispiel #18
0
MSyntax vxCache::newSyntax() 
{
	MSyntax syntax;

	syntax.addFlag("-p", "-path", MSyntax::kString);
	syntax.addFlag("-n", "-name", MSyntax::kString);
	syntax.addFlag("-w", "-world", MSyntax::kBoolean);
	syntax.addFlag("-sg", "-single", MSyntax::kBoolean);
	
	syntax.enableQuery(false);
	syntax.enableEdit(false);

	return syntax;
}
MSyntax closestPointOnCurveCommand::newSyntax()

{

   MSyntax syntax;



   // INPUT FLAGS:

   syntax.addFlag("-na", "-name", MSyntax::kString);

   syntax.addFlag("-ip", "-inPosition", MSyntax::kDouble, MSyntax::kDouble, MSyntax::kDouble);



   // OUTPUT/QUERYABLE FLAGS:

   syntax.addFlag("-p", "-position");

   syntax.addFlag("-nr", "-normal");

   syntax.addFlag("-t", "-tangent");

   syntax.addFlag("-u", "-paramU");

   syntax.addFlag("-d", "-distance");



   // DEFINE BEHAVIOUR OF COMMAND ARGUMENT THAT SPECIFIES THE CURVE NODE:

   syntax.useSelectionAsDefault(true);

   syntax.setObjectType(MSyntax::kSelectionList, 1, 1);



   // MAKE COMMAND QUERYABLE AND NON-EDITABLE:

   syntax.enableQuery(true);

   syntax.enableEdit(false);



   return syntax;

}
Beispiel #20
0
//-*****************************************************************************
MSyntax AbcExport::createSyntax()
{
    MSyntax syntax;

    syntax.addFlag("-v",  "-verbose", MSyntax::kNoArg);
    syntax.addFlag("-h",  "-help", MSyntax::kNoArg);
    syntax.addFlag("-fs", "-frameStart", MSyntax::kLong);
    syntax.addFlag("-fe", "-frameEnd", MSyntax::kLong);
    syntax.addArg(MSyntax::kString);

    syntax.enableQuery(true);
    syntax.enableEdit(false);

    return syntax;
}
Beispiel #21
0
MSyntax
boingRbCmd::cmdSyntax()
{
    MSyntax syntax;
    syntax.enableQuery(false);
    syntax.enableEdit(false);

    syntax.addFlag("-set", "-setAttr", MSyntax::kString);
    syntax.addFlag("-get", "-getAttr", MSyntax::kString);
    syntax.addFlag("-cr", "-create", MSyntax::kString);
    syntax.addFlag("-del", "-delete", MSyntax::kString);
    syntax.addFlag("-val", "-value", MSyntax::kDouble, MSyntax::kDouble, MSyntax::kDouble);

    return syntax;
}
void CVstSelectCoincidentFacesCmd::SpecifySyntax(
	MSyntax &mSyntax,
	ValveMaya::CMSyntaxHelp &mSyntaxHelp )
{
	mSyntaxHelp.AddFlag( mSyntax, kOptHelp, "help", "General", "Prints usage information" );

	mSyntaxHelp.AddFlag( mSyntax, kOptTolerance, "tolerance", "General",
		"Specifies the tolerance distance between vertices for them to be considered the same vertex",
		MSyntax::kDistance );

	mSyntax.setObjectType( MSyntax::kSelectionList );
	mSyntax.useSelectionAsDefault( true );
	mSyntax.enableEdit( false );
	mSyntax.enableQuery( false );
}
MSyntax CheckMeshCmd::CreateSyntax() {
  MSyntax syntax;

  syntax.addFlag(kToleranceName.c_str(), kToleranceNameLong.c_str(),
                 MSyntax::kDouble);

  syntax.addFlag(kModeName.c_str(), kModeNameLong.c_str(), MSyntax::kString);

  syntax.useSelectionAsDefault(true);
  syntax.setObjectType(MSyntax::kStringObjects, 1);
  syntax.enableQuery(true);
  syntax.enableEdit(false);

  return syntax;
}
Beispiel #24
0
MSyntax RenderCommand::newSyntax()
{
	MSyntax syntax;

	syntax.enableEdit(true);
	syntax.addFlag("-u", "-update");

	syntax.addFlag("-ipr", "-iprMode", MSyntax::kBoolean);
	syntax.addFlag("-p", "-pause", MSyntax::kBoolean);
	syntax.addFlag("-w", "-width", MSyntax::kLong);
	syntax.addFlag("-h", "-height", MSyntax::kLong);
	syntax.addFlag("-c", "-camera", MSyntax::kString);
	
	return syntax;
}
Beispiel #25
0
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 AdskSceneMetadataCmd::cmdSyntax()
{
    MSyntax syntax;

    syntax.addFlag( "-c", "-channelName",   MSyntax::kString );   
    syntax.addFlag( "-d", "-data",			MSyntax::kString );

    // In query mode, the command needs to know what channel to look for
    syntax.makeFlagQueryWithFullArgs( "-channelName", false );

    syntax.setObjectType( MSyntax::kStringObjects, 1, 1 );
    syntax.enableQuery( true );
    syntax.enableEdit( true );

    return syntax;
}
Beispiel #27
0
MSyntax AbcExport::createSyntax()
{
    MSyntax syntax;

    syntax.addFlag("-d",  "-debug", MSyntax::kNoArg);
    syntax.addFlag("-h",  "-help", MSyntax::kNoArg);
    syntax.addFlag("-sa", "-startAt", MSyntax::kDouble);
    syntax.addFlag("-sf", "-skipFrame", MSyntax::kNoArg);
    syntax.addFlag("-sl", "-selection", MSyntax::kNoArg);
    syntax.addArg(MSyntax::kString);

    syntax.enableQuery(true);
    syntax.enableEdit(false);

    return syntax;
}
Beispiel #28
0
MSyntax ExportACache::newSyntax() 
{
	MSyntax syntax;

	syntax.addFlag("-p", "-path", MSyntax::kString);
	syntax.addFlag("-t", "-title", MSyntax::kString);
	syntax.addFlag("-bc", "-backscatcamera", MSyntax::kString);
	syntax.addFlag("-ec", "-eyecamera", MSyntax::kString);
	syntax.addFlag("-ej", "-externaljob", MSyntax::kString);
	syntax.addFlag("-fs", "-framestart", MSyntax::kLong );
	syntax.addFlag("-fe", "-frameend", MSyntax::kLong );
	
	syntax.enableQuery(false);
	syntax.enableEdit(false);

	return syntax;
}
void CVsSkinnerCmd::SpecifySyntax(
	MSyntax &mSyntax,
	ValveMaya::CMSyntaxHelp &mSyntaxHelp )
{
	mSyntaxHelp.AddFlag( mSyntax, kOptHelp, "help", "General", "Prints usage information" );

	mSyntaxHelp.AddFlag( mSyntax, kOptCreate, "create", "Create",
		"Creates a new vsSkinner node" );

	mSyntaxHelp.AddFlag( mSyntax, kOptBind, "bind", "Create",
		"Binds the created node to either the specified joint hierarchy or the selected joints. Specifiy h or s for hierarchy or selected." );

	mSyntaxHelp.AddFlag( mSyntax, kOptName, "name", "Create",
		"Names the created vsSkinner node the specified name" );

	mSyntaxHelp.AddFlag( mSyntax, kOptNewVolume, "newVolume", "Edit",
		"Creates a new volume on the specified vsSkinner node using the specified transform as the parent.  The vsSkinner node must be specified first the parent transform second." );

	mSyntaxHelp.AddFlag( mSyntax, kOptFalloff, "falloff", "Edit",
		"Specifies the falloff of a created volume, defaults to 0.25",
		MSyntax::kDouble );

	mSyntaxHelp.AddFlag( mSyntax, kOptStrength, "strength", "Edit",
		"Specifies the strength of a created volume, defaults to 1.0",
		MSyntax::kDouble );

	mSyntaxHelp.AddFlag( mSyntax, kOptAttachMesh, "attachMesh", "Edit",
		"Attaches the input mesh to the node for previewing via the vsSkinner color set" );

	mSyntaxHelp.AddFlag( mSyntax, kOptDetachMesh, "detachMesh", "Edit",
		"Detaches the preview attributes of input mesh from the node" );

	mSyntaxHelp.AddFlag( mSyntax, kOptLs, "list", "Query",
		"List the vsSkinner nodes in the scene or if -sl/-selected is specified, derived from the specified nodes" );

	mSyntaxHelp.AddFlag( mSyntax, kOptSelected, "selected", "Query",
		"Modifies the behavior of -ls/-list so only the specified or selected nodes are taken into account" );

	mSyntaxHelp.AddFlag( mSyntax, kOptLong, "long", "Query",
		"Modifies the behavior of -ls/-list so long node pathnames are returned.  If -long isn't specified, the shortest unique pathname is returned." );

	mSyntax.setObjectType( MSyntax::kSelectionList );
	mSyntax.useSelectionAsDefault( true );
	mSyntax.enableEdit( false );
	mSyntax.enableQuery( false );
}
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;
}