pymel.core.general.makePaintable

makePaintable(*args, **kwargs)

Make attributes of nodes paintable to Attribute Paint Tool. This command is used to register new attributes to the Attribute Paint tool as paintable. Once registered the attributes will be recognized by the Attribute Paint tool and the user will be able to paint them. In query mode, return type is based on queried flag.

Flags:
  • activate : ac (bool) [create,query]

    Activate / deactivate the given paintable attribute. Used to filter out some nodes in the attribute paint tool.

  • activateAll : aca (bool) [create,query]

    Activate / deactivate all the registered paintable attributes. Used to filter out some nodes in the attribute paint tool. Flag can have multiple arguments, passed either as a tuple or a list.

  • altAttribute : aa (unicode) [create,query]

    Define an alternate attribute which will also receive the same values. There can be multiple such flags.

  • attrType : at (unicode) [create,query]

    Paintable attribute type. Supported types: intArray, doubleArray, vectorArray, multiInteger, multiFloat, multiDouble, multiVector.

  • clearAll : ca (bool) [create,query]

    Removes all paintable attribute definitions.

  • remove : rm (bool) [create,query]

    Make the attribute not paintable any more.

  • shapeMode : sm (unicode) [create,query]

    This flag controls how Artisan correlates the paintable node to a corresponding shape node. It is used for attributes of type multi of multi, where the first multi dimension corresponds to the shape index (i.e. cluster nodes). At present, only one value of this flag is supported: deformer. By default this flag is an empty string, which means that there is a direct indexing (no special mapping required) of the attribute with respect to vertices on the shape.

  • uiName : ui (unicode) [create,query]

    UI name. Default is the attribute name.

Derived from mel command maya.cmds.makePaintable

Previous topic

pymel.core.general.makeLive

Next topic

pymel.core.general.move

Core

Core Modules

Other Modules

This Page