pymel.core.general.attributeName

attributeName(*args, **kwargs)

This command takes one node.attribute-style specifier on the command line and returns either the attribute’s long, short, or nice name. (The nicename, or UI name, is the name used to display the attribute in Maya’s interface, and may be localized when running Maya in a language other than English.) If more than one node.attributespecifier is given on the command line, only the first valid specifier is processed.

Flags:
  • leaf : lf (bool) [create]

    When false, shows parent multi attributes (like controlPoints[2].xValue). When true, shows only the leaf-level attribute name (like xValue). Default is true. Note that for incomplete attribute strings, like a missing multi-parent index (controlPoints.xValue) or an incorrectly named compound (cntrlPnts[2].xValue), this flag defaults to true and provides a result as long as the named leaf-level attribute is defined for the node. Flag can have multiple arguments, passed either as a tuple or a list.

  • long : l (bool) [create]

    Returns names in long nameformat like translateX

  • nice : n (bool) [create]

    Returns names in nice nameformat like Translate X

  • short : s (bool) [create]

    Returns names in short nameformat like tx

Derived from mel command maya.cmds.attributeName

Previous topic

pymel.core.general.attributeInfo

Next topic

pymel.core.general.attributeQuery

Core

Core Modules

Other Modules

This Page