This is a tool context command for 3d Paint tool. In query mode, return type is based on queried flag.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
accopacity (aco) | bool | ||
|
|||
afterStrokeCmd (asc) | unicode | ||
alphablendmode (abm) | unicode | ||
Specifies the blend mode used while painting RGB channel. Currently, we support the following blend modes: DefaultLightenDarkenDifferenceExclusionHard LightSoft LightMultiplyScreenOverlayDefault is Default. |
|||
assigntxt (ast) | bool | ||
|
|||
attrnames (atn) | 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. |
|||
brushdepth (bd) | float | ||
brushfeedback (brf) | bool | ||
|
|||
brushtype (brt) | unicode | ||
clear (clr) | bool | ||
|
|||
commonattr (cat) | unicode | ||
Returns a string with the names of all common to all the shaders paintable attributes and supported by the Paint Texture Tool. Flag can have multiple arguments, passed either as a tuple or a list. |
|||
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, uvvectoror 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, fitpostScriptEPS, softimage, wavefrontRLA, wavefrontEXP. C: default is tiff. Q: When queried, it returns a string. |
|||
extendFillColor (efc) | bool | ||
|
|||
fileformat (eff) | unicode | ||
filetxtaspectratio (far) | float | ||
|
|||
filetxtsizex (ftx) | int | ||
|
|||
filetxtsizey (fty) | int | ||
|
|||
floodOpacity (fop) | float | ||
floodall (fal) | bool | ||
floodselect (fsl) | bool | ||
history (ch) | bool | ||
|
|||
image1 (i1) | unicode | ||
image2 (i2) | unicode | ||
image3 (i3) | unicode | ||
|
|||
importfileload (ifl) | unicode | ||
|
|||
importfilemode (ifm) | unicode | ||
|
|||
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. |
|||
keepaspectratio (kar) | bool | ||
|
|||
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 | ||
|
|||
opacity (op) | float | ||
|
|||
outline (o) | bool | ||
|
|||
outwhilepaint (owp) | bool | ||
|
|||
paintmode (pm) | unicode | ||
|
|||
paintoperationtype (pot) | unicode | ||
|
|||
painttxtattr (pta) | unicode | ||
Specifies the attribute on the shader which the user wants to paint. Currently, we support the following attributes: Color, Transparency, Ambient, Incandescence, BumpMap, Diffuse, TranslucenceEccentricitySpecularColor, Reflectivity, ReflectedColor. Default is Color. |
|||
painttxtattrname (ptn) | unicode | ||
|
|||
pfxScale (psc) | float | ||
|
|||
pfxWidth (pwd) | float | ||
|
|||
pickColor (pcm) | bool | ||
pickValue (pv) | bool | ||
playbackCursor (plc) | float, float | ||
playbackPressure (plp) | float | ||
preserveclonesource (pcs) | bool | ||
pressureMapping1 (pm1) | int | ||
pressureMapping2 (pm2) | int | ||
pressureMapping3 (pm3) | int | ||
pressureMax1 (px1) | float | ||
pressureMax2 (px2) | float | ||
pressureMax3 (px3) | float | ||
pressureMin1 (ps1) | float | ||
pressureMin2 (ps2) | float | ||
pressureMin3 (ps3) | float | ||
profileShapeFile (psf) | unicode | ||
|
|||
projective (prm) | bool | ||
|
|||
radius (r) | float | ||
|
|||
record (rec) | bool | ||
reflection (rn) | bool | ||
|
|||
reflectionaboutorigin (rno) | bool | ||
reflectionaxis (ra) | unicode | ||
|
|||
reloadtexfile (rtf) | bool | ||
|
|||
resizeratio (rr) | float | ||
|
|||
resizetxt (rft) | bool | ||
|
|||
rgbcolor (rgb) | float, float, float | ||
rgbflood (fc) | float, float, float | ||
saveTextureOnStroke (sts) | bool | ||
|
|||
saveonstroke (sos) | bool | ||
|
|||
savetexture (stx) | bool | ||
|
|||
screenRadius (scR) | float | ||
selectclonesource (scs) | bool | ||
shadernames (hnm) | unicode | ||
|
|||
shapenames (shn) | 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, solidand 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 | ||
|
|||
updateEraseTex (uet) | bool | ||
usepressure (up) | bool | ||
|
|||
worldRadius (wlR) | float | ||
Derived from mel command maya.cmds.art3dPaintCtx
Example:
import pymel.core as pm
# Create a new 3d paint context, then switch to it
pm.art3dPaintCtx('art3dPaintCtx1')
# Result: u'art3dPaintCtx1' #
pm.setToolTo('art3dPaintCtx1')
# Set art3dPaintCtx1's radius to 2.0, lowerradius to 0.5
pm.art3dPaintCtx('art3dPaintCtx1', edit=True, r=2.0, lr=0.5)
# Result: u'art3dPaintCtx1' #