This is a context command to set the flags on the artAttrContext, which is the base context for attribute painting operations. All commands require the name of the context as the last argument as this provides the name of the context to create, edit or query. This is a context command to set the flags on the Paint color on vertex Tool context. In query mode, return type is based on queried flag.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
accopacity (aco) | bool | ||
|
|||
activeListChangedProc (alp) | unicode | ||
Accpts a string which contains a MEL command that is invoked whenever the active list changes. There may be some situations where the UI, for example, needs to be updated, when objects are selected/deselected in the scene. In query mode, the name of the currently registered MEL command is returned and this will be an empty string if none is defined. |
|||
afterStrokeCmd (asc) | unicode | ||
|
|||
alphaclamp (alc) | unicode | ||
Specifies if the weight value should be alpha clamped to the lower and upper bounds. There are four options here: “none” - no clamping is performed, “lower” - clamps only to the lower bound, “upper” - clamps only to the upper bounds, “both” - clamps to the lower and upper bounds. C: Default is “none”. Q: When queried, it returns a string. |
|||
alphaclamplower (acl) | float | ||
|
|||
alphaclampupper (acu) | float | ||
|
|||
attrSelected (asl) | unicode | ||
|
|||
beforeStrokeCmd (bsc) | unicode | ||
|
|||
brushalignment (bra) | bool | ||
Specifies the path brush alignemnt. If true, the brush will align to stroke path, otherwise it will align to up vector. C: Default is true. Q: When queried, it returns a boolean. |
|||
brushfeedback (brf) | bool | ||
|
|||
clamp (cl) | unicode | ||
Specifies if the weight value should be clamped to the lower and upper bounds. There are four options here: “none” - no clamping is performed, “lower” - clamps only to the lower bound, “upper” - clamps only to the upper bounds, “both” - clamps to the lower and upper bounds. C: Default is “none”. Q: When queried, it returns a string. |
|||
clamplower (cll) | float | ||
|
|||
clampupper (clu) | float | ||
|
|||
clear (clr) | bool | ||
|
|||
colorAlphaValue (cl1) | float | ||
colorRGBAValue (cl4) | float, float, float, float | ||
colorRGBValue (cl3) | float, float, float | ||
colorRamp (cr) | unicode | ||
|
|||
colorfeedback (cf) | bool | ||
|
|||
colorfeedbackOverride (cfo) | bool | ||
colorrangelower (crl) | float | ||
|
|||
colorrangeupper (cru) | float | ||
|
|||
dataTypeIndex (dti) | int | ||
|
|||
disablelighting (dl) | bool | ||
If color feedback is on, this flag determines whether lighting is disabled or not for the surfaces that are affected C: Default is FALSE. Q: When queried, it returns a boolean. |
|||
dragSlider (dsl) | unicode | ||
Sets the current brush drag state for resizing or offsetting the brush (like the ‘b’ and ‘m’ default hotkeys). The string argument is one of: “radius”, “lowradius”, “opacity”, “value”, “depth”, “displacement”, “uvvector” or “none”. C: Default is “none”. |
|||
duringStrokeCmd (dsk) | unicode | ||
The passed string is executed as a MEL command during the stroke, each time the mouse is dragged. C: Default is no command. Q: When queried, it returns the current command |
|||
dynclonemode (dcm) | bool | ||
exists (ex) | bool | ||
|
|||
expandfilename (eef) | bool | ||
|
|||
exportaspectratio (ear) | float | ||
exportfilemode (efm) | unicode | ||
|
|||
exportfilesave (esf) | unicode | ||
|
|||
exportfilesizex (fsx) | int | ||
|
|||
exportfilesizey (fsy) | int | ||
|
|||
exportfiletype (eft) | unicode | ||
Specifies the image file format. It can be one of the following: “iff”, “tiff”, “jpeg”, “alias”, “rgb”, “fit” “postScriptEPS”, “softimage”, “wavefrontRLA”, “wavefrontEXP”. C: default is tiff. Q: When queried, it returns a string. |
|||
filterNodes (fon) | bool | ||
|
|||
history (ch) | bool | ||
|
|||
image1 (i1) | unicode | ||
image2 (i2) | unicode | ||
image3 (i3) | unicode | ||
|
|||
importfileload (ifl) | unicode | ||
|
|||
importfilemode (ifm) | unicode | ||
Specifies the channel to import. The valid entries here are: “alpha”, “luminance”, “red”, “green”, “blue”, and “rgb” C: Default is “alpha”. Q: When queried, it returns a string. |
|||
importreassign (irm) | bool | ||
Specifies if the multiply atrribute maps are to be reassigned while importing. Only maps previously exported from within Artisan can be reassigned. C: Default is FALSE. Q: When queried, it returns a boolean. |
|||
interactiveUpdate (iu) | bool | ||
Specifies how often to transfer the painted values into the attribute. TRUE: transfer them “continuously” (many times per stroke) FALSE: transfer them only at the end of a stroke (on mouse button release) C: Default is TRUE. Q: When queried, it returns a boolean. |
|||
lastRecorderCmd (lrc) | unicode | ||
lastStampName (lsn) | unicode | ||
lowerradius (lr) | float | ||
|
|||
makeStroke (mst) | int | ||
mappressure (mp) | unicode | ||
Sets the tablet pressure mapping when the table is used. There are four options: “none” - the pressure has no effect, “opacity” - the pressure is mapped to the opacity, “radius” - the is mapped to modify the radius of the brush, “both” - the pressure modifies both the opacity and the radius. C: Default is “none”. Q: When queried, it returns a string. |
|||
maxvalue (mxv) | float | ||
|
|||
minvalue (miv) | float | ||
|
|||
name (n) | unicode | ||
|
|||
objattrArray (oaa) | unicode | ||
An array of all paintable attributes. Each element of the array is a string with the following information: NodeType.NodeName.AttributeName.MenuType *MenuType: type(level) of the item in the Menu (UI). Q: When queried, it returns a string. |
|||
opacity (op) | float | ||
|
|||
outline (o) | bool | ||
|
|||
outwhilepaint (owp) | bool | ||
|
|||
paintComponent (pc) | int | ||
|
|||
paintNodeArray (pna) | unicode | ||
|
|||
paintNumChannels (pnc) | int | ||
paintRGBA (pc4) | bool | ||
Specifies whether RGB or RGBA channels are being painted. TRUE: RGBA channels. FALSE: RGB channels. Alpha channel remains unaffected. C: Default is FALSE (Painting RGB channels). Q: When queried, it returns a int. |
|||
paintVertexFace (pvf) | bool | ||
Specifies whether vertex face is being painted. TRUE: Vertex face being painted. (Allows each face connected to the vertex to be painted) FALSE: Vertex being painted.(affects all connected faces) C: Default is FALSE. Q: When queried, it returns a int. |
|||
paintattrselected (pas) | unicode | ||
|
|||
paintmode (pm) | unicode | ||
|
|||
paintoperationtype (pot) | unicode | ||
pickColor (pcm) | bool | ||
pickValue (pv) | bool | ||
playbackCursor (plc) | float, float | ||
playbackPressure (plp) | float | ||
preserveclonesource (pcs) | bool | ||
profileShapeFile (psf) | unicode | ||
|
|||
projective (prm) | bool | ||
|
|||
radius (r) | float | ||
|
|||
rampMaxColor (rxc) | float, float, float | ||
|
|||
rampMinColor (rmc) | float, float, float | ||
|
|||
record (rec) | bool | ||
reflection (rn) | bool | ||
|
|||
reflectionaboutorigin (rno) | bool | ||
reflectionaxis (ra) | unicode | ||
|
|||
screenRadius (scR) | float | ||
selectclonesource (scs) | bool | ||
selectedattroper (sao) | unicode | ||
Sets the edit weight operation. Four edit weights operations are provided : “absolute” - the value of the weight is replaced by the current one, “additive” - the value of the weight is added to the current one, “scale” - the value of the weight is multiplied by the current one, “smooth” - the value of the weight is divided by the current one. C: Default is “absolute”. Q: When queried, it returns a string. |
|||
showactive (sa) | bool | ||
|
|||
stampDepth (stD) | float | ||
stampProfile (stP) | unicode | ||
Sets the brush profile of the current stamp. Currently, the following profiles are supported: “gaussian”, “soft”, “solid” and “square”. C: Default is gaussian. Q: When queried, it returns a string. |
|||
stampSpacing (stS) | float | ||
strokesmooth (ssm) | unicode | ||
|
|||
tablet (tab) | bool | ||
|
|||
tangentOutline (to) | bool | ||
|
|||
toolOffProc (tfp) | unicode | ||
Accepts a strings describing the name of a MEL procedure which is invoked whenever the tool is turned off. For example, cloth invokes “clothPaintToolOff” when the cloth paint tool is turned on. Define this callback if your tool requires special functionality when your tool is deactivated. It is typical that if you implement a toolOffProc you will want to implement a toolOnProc as well (see the -toolOnProc flag. In query mode, the name of the currently registered MEL command is returned and this will be an empty string if none is defined. |
|||
toolOnProc (top) | unicode | ||
Accepts a strings describing the name of a MEL procedure which is invoked whenever the tool is turned on. For example, cloth invokes “clothPaintToolOn” when the cloth paint tool is turned on. Define this callback if your tool requires special functionality when your tool is activated. It is typical that if you implement a toolOnProc you will want to implement a toolOffProc as well (see the -toolOffProc flag. In query mode, the name of the currently registered MEL command is returned and this will be an empty string if none is defined. |
|||
useColorRamp (ucr) | bool | ||
|
|||
useMaxMinColor (umc) | bool | ||
|
|||
usepressure (up) | bool | ||
|
|||
value (val) | float | ||
|
|||
vertexColorRange (vcr) | bool | ||
|
|||
vertexColorRangeLower (vcl) | float | ||
|
|||
vertexColorRangeUpper (vcu) | float | ||
Specifies the max value of the vertex color range. C: Default is 1.0. Q: When queried, it returns a float.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
whichTool (wst) | unicode | ||
The string defines the name of the tool to be used for the Artisan context. An example is “artClothPaint”. In query mode, the tool name for the given context is returned. Note: due to the way MEL works, always specify the -query flag last when specifying a flag which takes arguments. |
|||
worldRadius (wlR) | float | ||
Derived from mel command maya.cmds.artAttrPaintVertexCtx
Example:
import pymel.core as pm
import maya.cmds as cmds
# Create a new vertexAttr paint context, then switch to it
pm.artAttrPaintVertexCtx('artAttrPaintVertexCtx1')
# Result: u'artAttrPaintVertexCtx1' #
pm.setToolTo('artAttrPaintVertexCtx1')