MFnNObjectData Class Reference
#include <MFnNObjectData.h>
function set for nCloth object data
Class for transferring N object data between connections
|
enum | Type {
kInvalid,
kNumeric,
kPlugin,
kPluginGeometry,
kString,
kMatrix,
kStringArray,
kDoubleArray,
kFloatArray,
kIntArray,
kPointArray,
kVectorArray,
kMatrixArray,
kComponentList,
kMesh,
kLattice,
kNurbsCurve,
kNurbsSurface,
kSphere,
kDynArrayAttrs,
kDynSweptGeometry,
kSubdSurface,
kNObject,
kNId,
kAny,
kLast
} |
| Types of dependency graph data. More...
|
|
static const char * | className () |
| Returns the name of this class. More...
|
|
Constructor.
Class constructor that initializes the function set to the given MObject.
- Parameters
-
[in] | object | The MObject to attach the function set to |
[out] | ReturnStatus | the return status |
- Status Codes:
- MS::kSuccess if the function set is successfully attached
- MS::kInvalidParameter if the MObject does not represent a valid Maya object or if the function set is not allowed to attach to this MObject
Constructor.
Class constructor that initializes the function set to the given MObject.
- Parameters
-
[in] | object | The MObject to attach the function set to |
[out] | ReturnStatus | the return status |
- Status Codes:
- MS::kSuccess if the function set is successfully attached
- MS::kInvalidParameter if the MObject does not represent a valid Maya object or if the function set is not allowed to attach to this MObject
const char * className |
( |
| ) |
const |
|
protectedvirtual |
Class name.
Return the class name : "MFnNObjectData".
Reimplemented from MFnData.
Creates an underlying Maya N data object and return it as an MObject.
- Returns
- The newly object.
NO SCRIPT SUPPORT.
Get the nObject pointer for an nCloth.
- Parameters
-
[in] | ptr | Storage to return the pointer to the N cloth. |
- Returns
- Status Code
- Status Codes:
- MS::kSuccess operation successful
- MS::kFailure this function set does not have a valid object
NO SCRIPT SUPPORT.
Get the nObject pointer for an nRigid.
- Parameters
-
[in] | ptr | Storage to return the pointer to the N rigid |
- Returns
- Status Code
- Status Codes:
- MS::kSuccess operation successful
- MS::kFailure this function set does not have a valid object
NO SCRIPT SUPPORT.
Get the nObject pointer for an nParticle.
- Parameters
-
[in] | ptr | Storage to return the pointer to the N particle. |
- Returns
- Status Code
- Status Codes:
- MS::kSuccess operation successful
- MS::kFailure this function set does not have a valid object
Get the nObject pointer for an nCloth.
- Parameters
-
- Returns
- the pointer to the N cloth
- Status Codes:
- MS::kSuccess operation successful
- MS::kFailure this function set does not have a valid object
Get the nObject pointer for an nRigid.
- Parameters
-
- Returns
- the pointer to the N rigid
- Status Codes:
- MS::kSuccess operation successful
- MS::kFailure this function set does not have a valid object
Get the nObject pointer for an nParticle.
- Parameters
-
- Returns
- the pointer to the N particle
- Status Codes:
- MS::kSuccess operation successful
- MS::kFailure this function set does not have a valid object
Set the nCloth pointer.
- Parameters
-
[in] | ptr | pointer to the N cloth |
- Returns
- Status Code
- Status Codes:
- MS::kSuccess operation successful
- MS::kFailure this function set does not have a valid object
Set the nRigid pointer.
- Parameters
-
[in] | ptr | pointer to the nRigid |
- Returns
- Status Code
- Status Codes:
- MS::kSuccess operation successful
- MS::kFailure this function set does not have a valid object
Set the nParticle pointer.
- Parameters
-
[in] | ptr | pointer to the nParticle |
- Returns
- Status Code
- Status Codes:
- MS::kSuccess operation successful
- MS::kFailure this function set does not have a valid object
MStatus getCollide |
( |
bool & |
collide | ) |
const |
Get wether the nObject is allowed to participate in collisions.
- Parameters
-
[out] | collide | the collision state |
- Returns
- Status Code
- Status Codes:
- MS::kSuccess operation successful
- MS::kFailure this function set does not have a valid object
MStatus getCached |
( |
bool & |
cached | ) |
const |
NO SCRIPT SUPPORT.
Get whether the nObject is cached.
- Parameters
-
[out] | cached | the cache state |
- Returns
- Status Code
- Status Codes:
- MS::kSuccess operation successful
- MS::kFailure this function set does not have a valid object
bool isCached |
( |
MStatus * |
status = NULL | ) |
const |
Get whether the nObject is cached.
- Parameters
-
- Returns
- the cache state
- Status Codes:
- MS::kSuccess operation successful
- MS::kFailure this function set does not have a valid object
Set wether the nObject is cached.
- Parameters
-
[in] | cached | the cache state |
- Returns
- Status Code
- Status Codes:
- MS::kSuccess operation successful
- MS::kFailure this function set does not have a valid object
The documentation for this class was generated from the following files:
- MFnNObjectData.h
- MFnNObjectData.cpp