Exemple #1
0
MSyntax deletedMessage::newSyntax() {
	MSyntax syntax;
	syntax.setObjectType(MSyntax::kSelectionList);
	syntax.setMinObjects(1);
	syntax.useSelectionAsDefault(true);
	return syntax;
}
Exemple #2
0
MSyntax linearFrictionCmd::newSyntax()
{
	MSyntax syntax;
	syntax.addFlag(lfFlag,lfLongFlag,MSyntax::kDouble);

	return syntax;
}
Exemple #3
0
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;
}
Exemple #5
0
MSyntax restitutionCmd::newSyntax()
{
	MSyntax syntax;
	syntax.addFlag(rstFlag,rstLongFlag,MSyntax::kDouble);

	return syntax;
}
Exemple #6
0
MSyntax stiffnessCmd::newSyntax()
{
	MSyntax syntax;
	syntax.addFlag(stfFlag,stfLongFlag,MSyntax::kDouble);

	return syntax;
}
Exemple #7
0
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;
}
Exemple #13
0
	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;
}
Exemple #15
0
	MSyntax FillStrandGaps::newSyntax() {
		MSyntax syntax;

		syntax.addFlag("-t", "-target", MSyntax::kString);
		syntax.makeFlagMultiUse("-t");

		return syntax;
	}
Exemple #16
0
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;
}
Exemple #17
0
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;
}
Exemple #19
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;
}
Exemple #21
0
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;
}
Exemple #22
0
MSyntax AlembicProfileEndCommand::createSyntax()
{
   MSyntax syntax;
   syntax.addFlag("-f", "-fileNameArg", MSyntax::kString);
   syntax.enableQuery(false);
   syntax.enableEdit(false);

   return syntax;
}
Exemple #23
0
// newSyntax
//
MSyntax eventTest::newSyntax()
{
	MSyntax syntax;

	syntax.addFlag(kMessageFlag, kMessageFlagLong, MSyntax::kBoolean);
	syntax.setObjectType(MSyntax::kStringObjects);

	return syntax;
}
Exemple #24
0
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;
}
Exemple #25
0
	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;
}
Exemple #28
0
MSyntax exportTerrain::newSyntax()
{
    MSyntax syntax;
    //Adding the flags
    syntax.addFlag(kPhysicsFlag,kPhysicsFlagLong);
   
   
    return syntax;
}
Exemple #29
0
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;
}
Exemple #30
0
MSyntax AlembicResolvePathCommand::createSyntax()
{
   MSyntax syntax;
   syntax.addFlag("-h", "-help");
   syntax.addFlag("-f", "-fileNameArg", MSyntax::kString);
   syntax.enableQuery(false);
   syntax.enableEdit(false);

   return syntax;
}