paya.lib.attrs#
- expandAttrListToParentsAndChildren(attrList, instances=True)#
Given a list of attributes, expands to include compound children.
- reorder(node, *attrNames)#
Rebuilds attributes in the specified order. The attributes must be dynamic, animatable and not compounds or multis. Lock states are dodged and connections are preserved:
- Parameters
node (str,
DependNode
) – the node that carries the attributesattrNames (list of str, str) – the names of the attributes to reorder, in the preferred order
- Returns
The rebuilt attributes.
- Return type
list of
Attribute
- class Section(sectionAttr, owner)#
- node()#
- Returns
The owner node.
- Return type
- sendAbove(attrName)#
Send this section and its members above the specified attribute in the channel box.
- sendBelow(attrName)#
Send this section and its members below the specified attribute in the channel box.
- collect(*attrNames, top=False)#
- class Sections(owner, attrName)#
Inheritance
- __getitem__(indexOrKey)#
- names()#
- Returns
The names of all available sections.
- Return type
list of str
- __contains__(sectionName)#
- Parameters
sectionName – the section name
- Returns
True if the section name exists, otherwise False
- add(sectionName)#
Creates a new attribute section.
- Parameters
sectionName – the name of the section
- Returns
A manager object for the new section.
- Return type
- clear()#
Removes all section attributes from the node. Member attributes are not removed.