Modifies the attributes of a poly color set.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
alphaScale_FloatValue (afv) | float | ||
alphaScale_Interp (ai) | int | ||
alphaScale_Position (ap) | float | ||
baseColorName (bcn) | unicode | ||
|
|||
blueScale_FloatValue (bfv) | float | ||
blueScale_Interp (bi) | int | ||
blueScale_Position (bp) | float | ||
caching (cch) | bool | ||
|
|||
constructionHistory (ch) | bool | ||
Turn the construction history on or off (where applicable). If construction history is on then the corresponding node will be inserted into the history chain for the mesh. If construction history is off then the operation will be performed directly on the object.Note:If the object already has construction history then this flag is ignored and the node will always be inserted into the history chain. |
|||
greenScale_FloatValue (gfv) | float | ||
greenScale_Interp (gi) | int | ||
greenScale_Position (gp) | float | ||
huev (h) | float | ||
|
|||
intensityScale_FloatValue (nfv) | float | ||
intensityScale_Interp (ni) | int | ||
intensityScale_Position (np) | float | ||
name (n) | unicode | ||
|
|||
nodeState (nds) | int | ||
Defines how to evaluate the node. 0: Normal1: PassThrough2: Blocking3: Internally disabled. Will return to Normal state when enabled4: Internally disabled. Will return to PassThrough state when enabled5: Internally disabled. Will return to Blocking state when enabledFlag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
redScale_FloatValue (rfv) | float | ||
redScale_Interp (ri) | int | ||
redScale_Position (rp) | float | ||
satv (s) | float | ||
|
|||
value (v) | float | ||
|
Derived from mel command maya.cmds.polyColorMod
Example:
import pymel.core as pm
import maya.cmds as cmds
# Create a poly plane pPlane1
pm.polyPlane(w=10, h=10, sx=10, sy=10, n='pPlane1')
# Create colorSet1 , set to use RGBA channel
pm.polyColorSet(create=True, clamped=0, rpt='RGBA', colorSet='colorSet1')
# Apply red color to the vertices of pPlane1
pm.polyColorPerVertex(r=1, g=0, b=0, a=1, cdo=True)
# Modified the color of colorSet1 to green
pm.polyColorMod('pPlane1',huev=120, bcn='colorSet1')