class MPxPolyTweakUVCommand

Jump to documentation

: public MPxCommand Base class used for moving polygon UV's. (OpenMaya) (OpenMayaMPx.py)

Inheritance:

MPxPolyTweakUVCommand < MPxCommand

public members:

MPxPolyTweakUVCommand ()
virtual ~MPxPolyTweakUVCommand ()
virtual MStatus parseSyntax ( MArgDatabase &argData)
virtual MStatus getTweakedUVs (const MObject & mesh, MIntArray & uvList, MFloatArray & uPos, MFloatArray & vPos)
static MSyntax newSyntax ()

Inherited from MPxCommand:

public members:

virtual MStatus doIt ( const MArgList & args )
virtual MStatus undoIt ( )
virtual MStatus redoIt ( )
virtual bool isUndoable () const
virtual bool hasSyntax () const
MSyntax syntax () const
bool isHistoryOn () const
MString commandString () const
MStatus setHistoryOn ( bool state )
MStatus setCommandString ( const MString & )
static void displayInfo ( const MString & theInfo )
static void displayWarning ( const MString & theWarning )
static void displayError ( const MString & theError )
static void displayWarning ( const MString & theWarning, bool wantDisplayLineNumber )
static void displayError ( const MString & theError, bool wantDisplayLineNumber )
enum MResultType
kLong
kDouble
kString
kNoArg
static void clearResult ()
static void setResult ( int val )
static void setResult ( double val )
static void setResult ( bool val )
static void setResult ( const char* val )
static void setResult ( const MString & val )
static void setResult ( const MIntArray & val )
static void setResult ( const MDoubleArray & val )
static void setResult ( const MStringArray & val )
static void appendToResult ( int val )
static void appendToResult ( double val )
static void appendToResult ( bool val )
static void appendToResult ( const char* val )
static void appendToResult ( const MString & val )
static void appendToResult ( const MStringArray & val )
static MResultType currentResultType ()
static MStatus getCurrentResult ( int& val )
static MStatus getCurrentResult ( double& val )
static MStatus getCurrentResult ( MString & val )
static MStatus getCurrentResult ( MIntArray & val )
static MStatus getCurrentResult ( MDoubleArray & val )
static MStatus getCurrentResult ( MStringArray & val )
static int currentIntResult ( MStatus * ReturnStatus = NULL )
static double currentDoubleResult ( MStatus * ReturnStatus = NULL )
static MString currentStringResult ( MStatus * ReturnStatus = NULL )
MStatus setUndoable ( bool state )

Documentation

Base class used for moving polygon UV's. (OpenMaya) (OpenMayaMPx.py)
Description

This is the base class for UV editing commands on polygonal objects.

The purpose of this command class is to simplify the process of moving UVs on a polygonal object. The use is only required to provide the new positions of the UVs that have been modified.

Functions

MPxPolyTweakUVCommand:: MPxPolyTweakUVCommand ()

Description

Class constructor.

MPxPolyTweakUVCommand:: ~MPxPolyTweakUVCommand ()

Description

Class destructor.

MStatus MPxPolyTweakUVCommand:: parseSyntax ( MArgDatabase & )

Description

This method parses the additionnal flags before the command is executed.

Return Value

  • MS::kSuccess operation successful
  • MS::kFailure operation failed

MStatus MPxPolyTweakUVCommand:: getTweakedUVs ( const MObject & , MIntArray & , MFloatArray & , MFloatArray & )

Description

This computes and returns modified UVs.

Arguments

  • MFnMesh The mesh object to be modified
  • uvList The list of UV Ids selected by the user. The method is allowed to change uvList on output.
  • uPos Output: The new u values corresponding to the indices listed in uvList.
  • vPos Output: The new v values corresponding to the indices listed in uvList.

Return Value

  • MS::kSuccess operation successful
  • MS::kFailure operation failed

MSyntax MPxPolyTweakUVCommand:: newSyntax ()

Description

This method creates and returns an MSyntax object required for the poly tweak UV proxy command.

This class has no child classes.


Autodesk® Maya® 8.0 © 1997-2006 Autodesk, Inc. All rights reserved. doc++ Copyright