pymel.core.nodetypes.Shape¶
digraph inheritance9154daee5c { rankdir=TB; ranksep=0.15; nodesep=0.15; size="8.0, 12.0"; "ContainerBase" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="pymel.core.nodetypes.ContainerBase.html#pymel.core.nodetypes.ContainerBase",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "DependNode" -> "ContainerBase" [arrowsize=0.5,style="setlinewidth(0.5)"]; "DagNode" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="pymel.core.nodetypes.DagNode.html#pymel.core.nodetypes.DagNode",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "Entity" -> "DagNode" [arrowsize=0.5,style="setlinewidth(0.5)"]; "DependNode" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="pymel.core.nodetypes.DependNode.html#pymel.core.nodetypes.DependNode",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "PyNode" -> "DependNode" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Entity" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="pymel.core.nodetypes.Entity.html#pymel.core.nodetypes.Entity",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "ContainerBase" -> "Entity" [arrowsize=0.5,style="setlinewidth(0.5)"]; "ProxyUnicode" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="../pymel.util.utilitytypes/pymel.util.utilitytypes.ProxyUnicode.html#pymel.util.utilitytypes.ProxyUnicode",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "PyNode" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="../pymel.core.general/pymel.core.general.PyNode.html#pymel.core.general.PyNode",style="setlinewidth(0.5)",tooltip="Abstract class that is base for all pymel nodes classes.",height=0.25,shape=box,fontsize=8]; "ProxyUnicode" -> "PyNode" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Shape" [fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",URL="#pymel.core.nodetypes.Shape",style="setlinewidth(0.5)",height=0.25,shape=box,fontsize=8]; "DagNode" -> "Shape" [arrowsize=0.5,style="setlinewidth(0.5)"]; }
- class Shape(*args, **kwargs)¶
- MObjectColorType = Enum( EnumValue('MObjectColorType', 0, 'defaultColor'), EnumValue('MObjectColorType', 1, 'indexColor'), EnumValue('MObjectColorType', 2, 'RGBColor'))¶
- child(i)¶
Queries the DAG Node attached to the Function Set for the child Node corresponding to the given index.
Parameters: - i : int
Index to the child Node
Return type: PyNode
Derived from api method maya.OpenMaya.MFnDagNode.child
- childCount()¶
Determines the number of child Nodes of the Node. Used to determine the upper bound for the child index (max index = childCount-1).
Return type: int Derived from api method maya.OpenMaya.MFnDagNode.childCount
- dagPath()¶
Returns the DagPath to which the Function Set is attached. The difference between this method and the method getPath above is that this one will fail if the function set is not attached to a dag path. getPath will find a dag path if the function set is not attached to one.
Return type: PyNode Derived from api method maya.OpenMaya.MFnDagNode.dagPath
- dagRoot()¶
Determines the root of the first DAG Path to the DAG Node attached to the Function Set.
Return type: PyNode Derived from api method maya.OpenMaya.MFnDagNode.dagRoot
- fullPathName()¶
Return a string representing the full path from the root of the dag to this object.
Return type: unicode Derived from api method maya.OpenMaya.MFnDagNode.fullPathName
- getAllPaths()¶
Determines all DAG Paths to the DAG Node attached to the Function Set.
Return type: PyNode list Derived from api method maya.OpenMaya.MFnDagNode.getAllPaths
- getPath()¶
Returns a DAG Path to the DAG Node attached to the Function Set. The difference between this method and the method dagPath below is that this one will not fail if the function set is not attached to a dag path, it will always return a path to the node. dagPath will fail if the function set is not attached to a dag path.
Return type: PyNode Derived from api method maya.OpenMaya.MFnDagNode.getPath
- getTransform()¶
- isInstancedAttribute(attribute)¶
Returns true if the specified attribute is instanced. An instanced attribute is an array attribute whose index depends upon which instance of the node is being referred to.
Parameters: - attribute : PyNode
The attribute to test.
Return type: bool
Derived from api method maya.OpenMaya.MFnDagNode.isInstancedAttribute
- isIntermediateObject()¶
Returns true if this object is an intermediate in a geometry calculation.
Return type: bool Derived from api method maya.OpenMaya.MFnDagNode.isIntermediateObject
- model(*args, **kwargs)¶
- parent(i)¶
Queries the DAG Node attached to the Function Set for the parent Node corresponding to the given index.
Parameters: - i : int
Index to the parent Node
Return type: PyNode
Derived from api method maya.OpenMaya.MFnDagNode.parent
- partialPathName()¶
Return a string representing the partial path from the root of the dag to this object.
Return type: unicode Derived from api method maya.OpenMaya.MFnDagNode.partialPathName
- removeChild(child)¶
Removes the given DAG Node from the parent. Once the child is removed, all children at higher indices would shift 1 position to the left.
Parameters: - child : PyNode
The Node to be removed as child
Derived from api method maya.OpenMaya.MFnDagNode.removeChild
Undo is not currently supported for this method
- removeChildAt(index)¶
Removes the child at the given index from the parent. Once the child is removed, all children at higher indices would shift 1 position to the left.
Parameters: - index : int
The index of the child.
Derived from api method maya.OpenMaya.MFnDagNode.removeChildAt
Undo is not currently supported for this method
- setInstanceable(how)¶
Sets whether or not the DAG node is instanceable. If the node is marked as noninstanceable, then if Maya attempts to create instances on the node the instancing operation will not succeed and instead an error will be reported. A node cannot be marked non-instanceable if it or any of its children are currently instanced. MS::kFailure will be returned it this occurs. The default instanceable state for newly created nodes if true, meaning that nodes can be instanced by default.
Parameters: - how : bool
true if the node should be made instanceable, false to make the node noninstanceable.
Derived from api method maya.OpenMaya.MFnDagNode.setInstanceable
- setIntermediateObject(isIntermediate)¶
Sets whether this object is an intermediate in a geometry calculation.
Parameters: - isIntermediate : bool
whether to make this an intermediate object
Derived from api method maya.OpenMaya.MFnDagNode.setIntermediateObject
- setObject(objectPath)¶
Attaches Function Set to the DAG Node that has the given DAG Path.
Parameters: - objectPath : PyNode
DAG Path to Node to be attached.
Derived from api method maya.OpenMaya.MFnDagNode.setObject
Undo is not currently supported for this method
- setParent(*args, **kwargs)¶
- usingObjectColor(*args, **kwargs)¶