pymel.core.nodetypes.Shape

Inheritance diagram of Shape

class Shape(*args, **kwargs)
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()

This method is obsolete.

Return type:PyNode

Derived from api method maya.OpenMaya.MFnDagNode.model

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()

Determines whether or not the user defined inactive color will be used for the node, or whether the default inactive color will be used.

Return type:bool

Derived from api method maya.OpenMaya.MFnDagNode.usingObjectColor

Previous topic

pymel.core.nodetypes.ShadingMap

Next topic

pymel.core.nodetypes.ShellTessellate

Core

Core Modules

Other Modules

This Page