This tool allows the user to modify the set membership (add, transfer, remove cvs) on nurbs surfaces using Maya Artisan’s interface. In query mode, return type is based on queried flag.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
accopacity (aco) | bool | ||
|
|||
afterStrokeCmd (asc) | 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 | ||
|
|||
clear (clr) | bool | ||
|
|||
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”. |
|||
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. |
|||
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. |
|||
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. |
|||
name (n) | unicode | ||
|
|||
objectsetnames (osn) | unicode | ||
opacity (op) | float | ||
|
|||
outline (o) | bool | ||
|
|||
outwhilepaint (owp) | bool | ||
|
|||
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 | ||
|
|||
record (rec) | bool | ||
reflection (rn) | bool | ||
|
|||
reflectionaboutorigin (rno) | bool | ||
reflectionaxis (ra) | unicode | ||
|
|||
screenRadius (scR) | float | ||
selectclonesource (scs) | bool | ||
setcolorfeedback (scf) | bool | ||
|
|||
setdisplaycvs (dcv) | bool | ||
Specifies if the active cvs are displayed. C: Default is ON. Q: When queried, it returns a boolean.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
setopertype (sot) | unicode | ||
|
|||
settomodify (stm) | unicode | ||
|
|||
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 | ||
surfaceConformedBrushVertices (scv) | bool | ||
|
|||
tablet (tab) | bool | ||
|
|||
tangentOutline (to) | bool | ||
|
|||
usepressure (up) | bool | ||
|
|||
worldRadius (wlR) | float | ||
Derived from mel command maya.cmds.artSetPaintCtx
Example:
import pymel.core as pm
# Create a new set membership paint context, then switch to it
pm.artSetPaintCtx('artSetPaintCtx1')
# Result: u'artSetPaintCtx1' #
pm.setToolTo('artSetPaintCtx1')
# Set brush's radius to 2.0, lower radius to 0.5
pm.artSetPaintCtx('artSetPaintCtx1', edit=True, r=2.0, lr=0.5)
# Result: u'artSetPaintCtx1' #