pymel.core.modeling.polyColorMod

static modeling.polyColorMod(*args, **kwargs)

Modifies the attributes of a poly color set.

Flags:
Long name (short name) Argument Types Properties
alphaScale_FloatValue (afv) float  
   
alphaScale_Interp (ai) int  
   
alphaScale_Position (ap) float  
   
baseColorName (bcn) unicode ../../../_images/create.gif
 
The name of the color set to be modified.
blueScale_FloatValue (bfv) float  
   
blueScale_Interp (bi) int  
   
blueScale_Position (bp) float  
   
caching (cch) bool ../../../_images/create.gif ../../../_images/edit.gif
 
Toggle caching for all attributes so that no recomputation is needed
constructionHistory (ch) bool ../../../_images/create.gif ../../../_images/query.gif
 

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 ../../../_images/create.gif
 
Rotates hue value of the final color.
intensityScale_FloatValue (nfv) float  
   
intensityScale_Interp (ni) int  
   
intensityScale_Position (np) float  
   
name (n) unicode ../../../_images/create.gif
 
Give a name to the resulting node.
nodeState (nds) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 

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 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 ../../../_images/create.gif
 
scales the saturation of the final color.
value (v) float ../../../_images/create.gif
 
Scales the final color value. Common flags

Derived from mel command maya.cmds.polyColorMod

Example:

import pymel.core as pm

# 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')

Previous topic

pymel.core.modeling.polyColorDel

Next topic

pymel.core.modeling.polyColorPerVertex

Core

Core Modules

Other Modules

This Page