Trees | Indices | Help |
|
---|
|
Contains some basic classes that are required to run the nodes system
All classes defined here can replace classes in the node type hierarachy if the name matches. This allows to create hand-implemented types.
|
|||
ContainerBase | |||
Entity | |||
Base | |||
---|---|---|---|
Node Common base for all maya nodes, providing access to the maya internal object representation Use this class to directly create a maya node of the required type |
|||
NodeFromObj Virtual Constructor, producing nodes as the Node does, but it will only accept MObjects or dagpaths which are expected to be valid. |
|||
NodeFromStr Virtual constructor similar to NodeFromObj, but it will only accept strings to produce a wrapped node as fast as possible. |
|||
DependNode Implements access to dependency nodes |
|||
DagNode Implements access to DAG nodes |
|||
Utilities | |||
SetFilter Utility Class returning True or False on call, latter one if the passed object does not match the filter |
|||
Attributes | |||
Attribute Represents an attribute in general - this is the base class Use this general class to create attribute wraps - it will return a class of the respective type |
|||
UnitAttribute | |||
TypedAttribute | |||
NumericAttribute | |||
MessageAttribute | |||
MatrixAttribute | |||
LightDataAttribute | |||
GenericAttribute | |||
EnumAttribute | |||
CompoundAttribute | |||
Data | |||
Data Represents an data in general - this is the base class Use this general class to create data wrap objects - it will return a class of the respective type |
|||
VectorArrayData | |||
UInt64ArrayData | |||
StringData | |||
StringArrayData | |||
SphereData | |||
PointArrayData | |||
PluginData Wraps plugin data as received by a plug. |
|||
NumericData | |||
NObjectData | |||
NIdData | |||
MatrixData | |||
IntArrayData | |||
GeometryData Wraps geometry data providing additional convenience methods |
|||
SubdData | |||
NurbsSurfaceData | |||
NurbsCurveData | |||
MeshData | |||
LatticeData | |||
DynSweptGeometryData | |||
DoubleArrayData | |||
ComponentListData Improves the default wrap by adding some required methods to deal with component lists |
|||
ArrayAttrsData | |||
Components | |||
Component Represents a shape component - its derivates can be used to handle component lists to be used in object sets and shading engines |
|||
SingleIndexedComponent precreated class for ease-of-use |
|||
DoubleIndexedComponent Fixes some functions that would not work usually |
|||
TripleIndexedComponent precreated class for ease-of-use |
|||
Basic Types | |||
MDagPathUtil Performs operations on MDagPaths which are hard or inconvenient to do otherwise |
|||
Default Types | |||
Reference Implements additional utilities to work with references |
|||
Transform Precreated class to allow isinstance checking against their types and to add undo support to MFnTransform functions, as well as for usability |
|||
Shape Interface providing common methods to all geometry shapes as they can be shaded. |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Conversions | |||
---|---|---|---|
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Base | |||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Attributes | |||
|
|
|||
log = logging.getLogger("mrv.maya.nt.base")
|
|||
_nodesdict = None hash(x) |
|||
_nameToApiSelList = api.MSelectionList()
|
|||
_mfndep = api.MFnDependencyNode()
|
|||
_mfndag = api.MFnDagNode()
|
|||
_mfndep_setobject = _mfndep.setObject
|
|||
_mfndag_setObject = _mfndag.setObject
|
|||
_mfndep_typename = _mfndep.typeName
|
|||
_mfndag_typename = _mfndag.typeName
|
|||
_mfndep_name = _mfndep.name
|
|||
_api_mdagpath_node = MDagPath.node
|
|||
_apitype_to_name = dict()
|
|||
_plugin_type_ids = api.MFn.kPluginDeformerNode, api.MFn.kPlugi
|
|||
_plugin_type_ids_lut = set(_plugin_type_ids)
|
|||
_plugin_type_to_node_type_name = dict(zip((_plugin_type_ids),
|
|||
Base | |||
---|---|---|---|
_api_type_tuple = MObject, MDagPath
|
|
|
Notes:
|
Note: we treat "nodename" and "|nodename" as the same objects as they occupy the same namespace - one time a dep node is meant, the other time a dag node. If querying a dag node, the dep node with the same name is not found, although it is in the same freaking namespace ! IMHO this is a big bug ! |
|
|
|
|
Note: this function is supposed to be faster for multiple nodes compared to just creating a Node directly as we optimize the process due to the intermediate selection list getting the api objects for the given names |
|
Note: perfer this method over mel as the API is used directly as we have some special handling to assure we get the right nodes |
Notes:
|
|
|
Note: This iterator will always return Nodes |
Notes:
|
Notes:
|
|
|
Note: if we have a plugin type, we must use the 'slow' way as the type is the same for all plugin nodes |
Constructor for MObject derived types which only differ in a few parameters. Requires _base_cls_ and _mfn_suffix_ to be set on the respective class return an attribute class of the respective type for given MObject
Note: Custom constructors are not possible as __init__ is automatically called afterwards - MObject does not support anything but no args or another MObject. |
|
_plugin_type_ids
|
_plugin_type_to_node_type_name
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Apr 19 18:00:12 2011 | http://epydoc.sourceforge.net |