Go to: Return value. Related commands. Flags. Examples.

Synopsis

makePaintable [-shapeMode string] [-altAttribute string] [-uiName string] [-attrType string] [-remove toggle] [-clearAll toggle] [-activate boolean] [-activateAll boolean] [string] [string]

makePaintable is undoable, queryable, and NOT editable .

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. makePaintable [flags] nodeType attributeName

Return value

None

Keywords

attributes, paint

Related commands

artAttrCtx, artAttrPaintVertexCtx, artFluidAttrCtx, artPuttyCtx, artSelectCtx, artSetPaintCtx, artUserPaintCtx

Flags

activate, activateAll, altAttribute, attrType, clearAll, remove, shapeMode, uiName

Long name (short name)[argument types]Properties
-shapeMode (-sm) stringquerycreate
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.
-altAttribute (-aa) stringquerycreatemultiuse
Define an alternate attribute which will also receive the same values. There can be multiple such flags.
-uiName (-ui) stringquerycreate
UI name. Default is the attribute name.
-attrType (-at) stringquerycreate
Paintable attribute type. Supported types: intArray, doubleArray, vectorArray, multiInteger, multiFloat, multiDouble, multiVector.
-remove (-rm) querycreate
Make the attribute not paintable any more.
-clearAll (-ca) querycreate
Removes all paintable attribute definitions.
-activate (-ac) booleanquerycreate
Activate / deactivate the given paintable attribute. Used to filter out some nodes in the attribute paint tool.
-activateAll (-aca) booleanquerycreate
Activate / deactivate all the registered paintable attributes. Used to filter out some nodes in the attribute paint tool.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command

Examples


// Make particle.mass paintable.
makePaintable -attrType "doubleArray" "particle" "mass";
// Make particle.goalPP paintable, with a ui name myGoalPP.
// Also make the goalPP0 attribute painted simultaneously
makePaintable -attrType "doubleArray" -ui "myGoalPP" -altAttribute "goalPP0" "particle" "goalPP";
// Make weightGeometryFilter.weights paintable. Define
// weightGeometryFilter as a deformer node.
makePaintable -attrType "multiFloat" -sm "deformer" "weightGeometryFilter" "weights";
// Make all the attributes paintable on the artAttrPaintTest node.
makePaintable -attrType "intArray"     "artAttrPaintTest" "intArray";
makePaintable -attrType "doubleArray"  "artAttrPaintTest" "dblArray";
makePaintable -attrType "vectorArray"  "artAttrPaintTest" "vecArray";
makePaintable -attrType "multiInteger" "artAttrPaintTest" "intMulti";
makePaintable -attrType "multiFloat"   "artAttrPaintTest" "fltMulti";
makePaintable -attrType "multiDouble"  "artAttrPaintTest" "dblMulti";
makePaintable -attrType "multiVector"  "artAttrPaintTest" "flt3Multi";
makePaintable -attrType "multiVector"  "artAttrPaintTest" "dbl3Multi";