MPxParticleAttributeMapperNode is the parent class of all user defined per particle attribute mapping nodes. This class extends Maya's internal 'arrayMapper' node, inheriting its attributes and default behaviour.
Public Member Functions
|virtual MPxNode::Type||type () const|
|virtual MStatus||compute (const MPlug &plug, MDataBlock &dataBlock)|
Static Public Attributes
|Input node used to compute output values. |
|The U component of an array of sample positions. |
|The V component of an array of sample positions. |
|The minimum limit on the output attribute outValuePP. |
|The maximum limit on the output attribute outValuePP. |
|This attribute allows the propagation of any changes to the. |
|The R component of the computeNodeColor. |
|The G component of the computeNodeColor. |
|The B component of the computeNodeColor. |
|This attribute holds the value for time (in seconds). |
|The outputColor vector per-particle attribute. |
|The outputValue vector per-particle attribute. |
Any calls the MPxParticleAttributeMapperNode methods must be done in the postConstructor method and not here.
|MPxNode::Type MPxParticleAttributeMapperNode::type||(||)|| const
|MStatus MPxParticleAttributeMapperNode::compute||(||const MPlug &||plug,|
This method should be overridden in user defined nodes.
Recompute the given output based on the nodes inputs. The plug represents the data value that needs to be recomputed, and the data block holds the storage for all of the node's attributes.
The MDataBlock will provide smart handles for reading and writing this node's attribute values. Only these values should be used when performing computations.
When evaluating the dependency graph, Maya will first call the compute method for this node. If the plug that is provided to the compute indicates that that the attribute was defined by the Maya parent node, the compute method should return MS::kUnknownParameter. When this occurs, Maya will call the internal Maya node from which the user-defined node is derived to compute the plug's value.
This means that a user defined node does not need to be concerned with computing inherited output attributes. However, if desired, these can be safely recomputed by this method to change the behaviour of the node.
|[in]||plug||plug representing the attribute that needs to be recomputed|
|[in]||dataBlock||data block containing storage for the node's attributes|
Reimplemented from MPxNode.
|Autodesk® Maya® 2009 © 1997-2008 Autodesk, Inc. All rights reserved.||Generated with 1.5.6|