This command is used to paint properties (such as density) of selected fluid volumes. In query mode, return type is based on queried flag.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
accopacity (aco) | bool | ||
|
|||
activeListChangedProc (alp) | unicode | ||
afterStrokeCmd (asc) | unicode | ||
alphaclamp (alc) | unicode | ||
alphaclamplower (acl) | float | ||
alphaclampupper (acu) | float | ||
attrSelected (asl) | unicode | ||
autoSave (autoSave) | unicode | ||
A MEL command to save the fluid state. Called before an event which could overwrite unsaved values of painted fluid properties. Such events include: changing current time, changing the current paintable property, and exiting the paint tool. (To turn auto-save off, pass in an empty-valued string argument: e.g., “”.) |
|||
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 | ||
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 | ||
currentPaintableFluid (cpf) | unicode | ||
Query the name of the fluid on which this context is currently painting. Returns string.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
dataTypeIndex (dti) | int | ||
delaySelectionChanged (dsc) | bool | ||
Internal use only. Under normal conditions, the tool responds to changes to the selection list so it can update its list of paintable geometry. When -dsl true is used, the tool will not update its paintable list until a corresponding -dsl false is called. |
|||
disablelighting (dl) | bool | ||
displayAsRender (dar) | bool | ||
When true, sets the “Shaded Display” attribute of the fluid to “AsRender”: all fluid properties displayed as hardware rendered. When false, displays only the currently selected paintable attribute of the fluid. |
|||
displayVelocity (dv) | bool | ||
Turns on/off velocity display, independently of the above “dar/displayAsRender” setting. Use this flag to enable velocity display while only displaying density, for example. |
|||
doAutoSave (das) | 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”. |
|||
duringStrokeCmd (dsk) | unicode | ||
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 | ||
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 | ||
opacity (op) | float | ||
|
|||
outline (o) | bool | ||
|
|||
outwhilepaint (owp) | bool | ||
|
|||
paintNodeArray (pna) | unicode | ||
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 | ||
|
|||
property (p) | unicode | ||
|
|||
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 | ||
|
|||
rgbValue (rgb) | float, float, float | ||
|
|||
screenRadius (scR) | float | ||
selectclonesource (scs) | bool | ||
selectedattroper (sao) | 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 | ||
|
|||
toolOffProc (tfp) | unicode | ||
toolOnProc (top) | unicode | ||
useColorRamp (ucr) | bool | ||
useMaxMinColor (umc) | bool | ||
useStrokeDirection (usd) | bool | ||
Applicable only during “velocity” painting. Specifies whether the value of the painted velocity should come from the direction of the brush stroke, overriding the value specified by the -v/-velocity flag. |
|||
usepressure (up) | bool | ||
|
|||
value (val) | float | ||
velocity (v) | float, float, float | ||
|
|||
whichTool (wst) | unicode | ||
worldRadius (wlR) | float | ||
Derived from mel command maya.cmds.artFluidAttrCtx
Example:
import pymel.core as pm
# Create a new fluidAttr paint context, then switch to it
pm.artFluidAttrCtx('artFluidAttrCtx1')
# Result: u'artFluidAttrCtx1' #
pm.setToolTo('artFluidAttrCtx1')
# Set to paint the color property on the fluid
pm.artFluidAttrCtx('artFluidAttrCtx1', edit=True, property='color')
# Result: u'artFluidAttrCtx1' #