pymel.core.uitypes.AETemplate

Inheritance diagram of AETemplate

class AETemplate(nodeName)
To create an Attribute Editor template using python, do the following:
  1. create a subclass of uitypes.AETemplate
  2. set its _nodeType class attribute to the name of the desired node type, or name the class using the
convention AE<nodeType>Template
  1. import the module

AETemplates which do not meet one of the two requirements listed in step 2 will be ignored. To ensure that your Template’s node type is being detected correctly, use the AETemplate.nodeType() class method:

import AETemplates
AETemplates.AEmib_amb_occlusionTemplate.nodeType()  

As a convenience, when pymel is imported it will automatically import the module AETemplates, if it exists, thereby causing any AETemplates within it or its sub-modules to be registered. Be sure to import pymel or modules containing your AETemplate classes before opening the Atrribute Editor for the node types in question.

To check which python templates are loaded:

from pymel.core.uitypes import AELoader
print AELoader.loadedTemplates()
addComponents()
addControl(control, label=None, changeCommand=None, annotation=None, preventOverride=False, dynamic=False)
addExtraControls(label=None)
addSeparator()
beginLayout(name, collapse=True)
beginNoOptimize()
beginScrollLayout()
callCustom(newFunc, replaceFunc, *attrs)
classmethod controlLabel(nodeName, control)
classmethod controlValue(nodeName, control)
dimControl(nodeName, control, state)
endLayout()
endNoOptimize()
endScrollLayout()
interruptOptimize()
nodeName
classmethod nodeType()
classmethod reload()

Reload the template. Beware, this reloads the module in which the template exists!

suppress(control)

Previous topic

pymel.core.uitypes.AELoader

Next topic

pymel.core.uitypes.AnimCurveEditor

Core

Core Modules

Other Modules

This Page