pymel.core.nodetypes.ContainerBase

Inheritance diagram of ContainerBase

class ContainerBase(*args, **kwargs)
MPublishNodeType = Enum( EnumValue('MPublishNodeType', 0, 'parentAnchor'), EnumValue('MPublishNodeType', 1, 'childAnchor'), EnumValue('MPublishNodeType', 2, 'generic'))
getMembers()

Return an array of the nodes included in this container.

Return type:PyNode list

Derived from api method maya.OpenMaya.MFnContainerNode.getMembers

getParentContainer()

Return the parent container, if there is one. Otherwise return an empty MObject

Return type:PyNode

Derived from api method maya.OpenMaya.MFnContainerNode.getParentContainer

getPublishedNames(unboundOnly)

Return a list of published names on the container. Depending on the arguments, either all published names or only unbound published names will be returned.

Parameters :
unboundOnly : bool

if true, only return names that are not associated with a plug

Return type:

list list

Derived from api method maya.OpenMaya.MFnContainerNode.getPublishedNames

getPublishedNodes(type)

Return a list of the published nodes of a given type. For any names that have assigned nodes, return the node at the corresponding array index. For any names that do not have assigned nodes, a NULL MObject will be at the corresponding array index.

Parameters :
type : ContainerBase.MPublishNodeType

published node type of interest

values: ‘parentAnchor’, ‘childAnchor’, ‘generic’

Return type:

(list list, PyNode list)

Derived from api method maya.OpenMaya.MFnContainerNode.getPublishedNodes

getPublishedPlugs()

Return two arrays: the first contains the plugs that have been published on this container. The second contains that published names for those plugs. There is a one-to-one correspondence between the plugs in the first array and the strings in the second.

Return type:(PyNode list, list list)

Derived from api method maya.OpenMaya.MFnContainerNode.getPublishedPlugs

getRootTransform()

Return the root transform, if there is one. Otherwise return an empty MObject .

Return type:PyNode

Derived from api method maya.OpenMaya.MFnContainerNode.getRootTransform

getSubcontainers()

Return an array of the container nodes included in this container.

Return type:PyNode list

Derived from api method maya.OpenMaya.MFnContainerNode.getSubcontainers

Previous topic

pymel.core.nodetypes.Container

Next topic

pymel.core.nodetypes.Contrast

Core

Core Modules

Other Modules

This Page