ジャンプ先: 概要. 戻り値. 関連. フラグ. Python 例.
polyColorMod([alphaScale_FloatValue=float], [alphaScale_Interp=int], [alphaScale_Position=float], [baseColorName=string], [blueScale_FloatValue=float], [blueScale_Interp=int], [blueScale_Position=float], [caching=boolean], [constructionHistory=boolean], [greenScale_FloatValue=float], [greenScale_Interp=int], [greenScale_Position=float], [huev=float], [intensityScale_FloatValue=float], [intensityScale_Interp=int], [intensityScale_Position=float], [name=string], [nodeState=int], [redScale_FloatValue=float], [redScale_Interp=int], [redScale_Position=float], [satv=float], [value=float])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
polyColorMod は、取り消し可能、照会可能、および編集可能です。
ポリゴン カラー セットのアトリビュートを修正します。| string | ノード名 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Common poly modifier operation flags | ||||||||||||
alphaScale_FloatValue(afv)
|
float
|
|
||||||||||
|
||||||||||||
alphaScale_Interp(ai)
|
int
|
|
||||||||||
|
||||||||||||
alphaScale_Position(ap)
|
float
|
|
||||||||||
|
||||||||||||
baseColorName(bcn)
|
string
|
|
||||||||||
|
||||||||||||
blueScale_FloatValue(bfv)
|
float
|
|
||||||||||
|
||||||||||||
blueScale_Interp(bi)
|
int
|
|
||||||||||
|
||||||||||||
blueScale_Position(bp)
|
float
|
|
||||||||||
|
||||||||||||
caching(cch)
|
boolean
|
|
||||||||||
|
||||||||||||
constructionHistory(ch)
|
boolean
|
|
||||||||||
|
||||||||||||
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)
|
string
|
|
||||||||||
|
||||||||||||
nodeState(nds)
|
int
|
|
||||||||||
|
||||||||||||
redScale_FloatValue(rfv)
|
float
|
|
||||||||||
|
||||||||||||
redScale_Interp(ri)
|
int
|
|
||||||||||
|
||||||||||||
redScale_Position(rp)
|
float
|
|
||||||||||
|
||||||||||||
satv(s)
|
float
|
|
||||||||||
|
||||||||||||
value(v)
|
float
|
|
||||||||||
|
||||||||||||
import maya.cmds as cmds
# Create a poly plane pPlane1
cmds.polyPlane(w=10, h=10, sx=10, sy=10, n='pPlane1')
# Create colorSet1 , set to use RGBA channel
cmds.polyColorSet(create=True, clamped=0, rpt='RGBA', colorSet='colorSet1')
# Apply red color to the vertices of pPlane1
cmds.polyColorPerVertex(r=1, g=0, b=0, a=1, cdo=True)
# Modified the color of colorSet1 to green
cmds.polyColorMod('pPlane1',huev=120, bcn='colorSet1')