ジャンプ先: 概要. 戻り値. フラグ. Python 例.
art3dPaintCtx([accopacity=boolean], [afterStrokeCmd=string], [alphablendmode=string], [assigntxt=boolean], [attrnames=string], [beforeStrokeCmd=string], [brushalignment=boolean], [brushdepth=float], [brushfeedback=boolean], [brushtype=string], [clear=boolean], [commonattr=string], [dragSlider=string], [dynclonemode=boolean], [exists=boolean], [expandfilename=boolean], [extendFillColor=boolean], [fileformat=string], [filetxtaspectratio=float], [filetxtsizex=int], [filetxtsizey=int], [floodOpacity=float], [floodall=boolean], [floodselect=boolean], [history=boolean], [image1=string], [image2=string], [image3=string], [keepaspectratio=boolean], [lastRecorderCmd=string], [lastStampName=string], [lowerradius=float], [makeStroke=uint], [mappressure=string], [name=string], [opacity=float], [outline=boolean], [outwhilepaint=boolean], [paintmode=string], [paintoperationtype=string], [painttxtattr=string], [painttxtattrname=string], [pfxScale=float], [pfxWidth=float], [pickColor=boolean], [pickValue=boolean], [playbackCursor=[float, float]], [playbackPressure=float], [preserveclonesource=boolean], [pressureMapping1=int], [pressureMapping2=int], [pressureMapping3=int], [pressureMax1=float], [pressureMax2=float], [pressureMax3=float], [pressureMin1=float], [pressureMin2=float], [pressureMin3=float], [profileShapeFile=string], [projective=boolean], [radius=float], [record=boolean], [reflection=boolean], [reflectionaboutorigin=boolean], [reflectionaxis=string], [reloadtexfile=boolean], [resizeratio=float], [resizetxt=boolean], [rgbcolor=[float, float, float]], [rgbflood=[float, float, float]], [saveTextureOnStroke=boolean], [saveonstroke=boolean], [savetexture=boolean], [screenRadius=float], [selectclonesource=boolean], [shadernames=string], [shapeattr=boolean], [shapenames=string], [showactive=boolean], [soloAsDiffuse=boolean], [stampDepth=float], [stampProfile=string], [stampSpacing=float], [strokesmooth=string], [surfaceConformedBrushVertices=boolean], [tablet=boolean], [tangentOutline=boolean], [textureFilenames=boolean], [updateEraseTex=boolean], [usepressure=boolean], [worldRadius=float])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
art3dPaintCtx は、取り消し可能、照会可能、および編集可能です。
3D Paint Tool 用のツール コンテキスト コマンドです。なし
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
|---|---|---|---|---|
accopacity(aco)
|
boolean
|
|
||
|
||||
afterStrokeCmd(asc)
|
string
|
|
||
|
||||
alphablendmode(abm)
|
string
|
|
||
|
||||
assigntxt(ast)
|
boolean
|
|
||
|
||||
attrnames(atn)
|
string
|
|
||
|
||||
beforeStrokeCmd(bsc)
|
string
|
|
||
|
||||
brushalignment(bra)
|
boolean
|
|
||
|
||||
brushdepth(bd)
|
float
|
|
||
|
||||
brushfeedback(brf)
|
boolean
|
|
||
|
||||
brushtype(brt)
|
string
|
|
||
|
||||
clear(clr)
|
boolean
|
|
||
|
||||
commonattr(cat)
|
string
|
|
||
|
||||
dragSlider(dsl)
|
string
|
|
||
|
||||
dynclonemode(dcm)
|
boolean
|
|
||
|
||||
exists(ex)
|
boolean
|
|
||
|
||||
expandfilename(eef)
|
boolean
|
|
||
|
||||
extendFillColor(efc)
|
boolean
|
|
||
|
||||
fileformat(eff)
|
string
|
|
||
|
||||
filetxtaspectratio(far)
|
float
|
|
||
|
||||
filetxtsizex(ftx)
|
int
|
|
||
|
||||
filetxtsizey(fty)
|
int
|
|
||
|
||||
floodOpacity(fop)
|
float
|
|
||
|
||||
floodall(fal)
|
boolean
|
|
||
|
||||
floodselect(fsl)
|
boolean
|
|
||
|
||||
history(ch)
|
boolean
|
|
||
|
||||
image1(i1)
|
string
|
|
||
|
||||
image2(i2)
|
string
|
|
||
|
||||
image3(i3)
|
string
|
|
||
|
||||
keepaspectratio(kar)
|
boolean
|
|
||
|
||||
lastRecorderCmd(lrc)
|
string
|
|
||
|
||||
lastStampName(lsn)
|
string
|
|
||
|
||||
lowerradius(lr)
|
float
|
|
||
|
||||
makeStroke(mst)
|
uint
|
|
||
|
||||
mappressure(mp)
|
string
|
|
||
|
||||
name(n)
|
string
|
|
||
|
||||
opacity(op)
|
float
|
|
||
|
||||
outline(o)
|
boolean
|
|
||
|
||||
outwhilepaint(owp)
|
boolean
|
|
||
|
||||
paintmode(pm)
|
string
|
|
||
|
||||
paintoperationtype(pot)
|
string
|
|
||
|
||||
painttxtattr(pta)
|
string
|
|
||
|
||||
painttxtattrname(ptn)
|
string
|
|
||
|
||||
pfxScale(psc)
|
float
|
|
||
|
||||
pfxWidth(pwd)
|
float
|
|
||
|
||||
pickColor(pcm)
|
boolean
|
|
||
|
||||
pickValue(pv)
|
boolean
|
|
||
|
||||
playbackCursor(plc)
|
[float, float]
|
|
||
|
||||
playbackPressure(plp)
|
float
|
|
||
|
||||
preserveclonesource(pcs)
|
boolean
|
|
||
|
||||
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)
|
string
|
|
||
|
||||
projective(prm)
|
boolean
|
|
||
|
||||
radius(r)
|
float
|
|
||
|
||||
record(rec)
|
boolean
|
|
||
|
||||
reflection(rn)
|
boolean
|
|
||
|
||||
reflectionaboutorigin(rno)
|
boolean
|
|
||
|
||||
reflectionaxis(ra)
|
string
|
|
||
|
||||
reloadtexfile(rtf)
|
boolean
|
|
||
|
||||
resizeratio(rr)
|
float
|
|
||
|
||||
resizetxt(rft)
|
boolean
|
|
||
|
||||
rgbcolor(rgb)
|
[float, float, float]
|
|
||
|
||||
rgbflood(fc)
|
[float, float, float]
|
|
||
|
||||
saveTextureOnStroke(sts)
|
boolean
|
|
||
|
||||
saveonstroke(sos)
|
boolean
|
|
||
|
||||
savetexture(stx)
|
boolean
|
|
||
|
||||
screenRadius(scR)
|
float
|
|
||
|
||||
selectclonesource(scs)
|
boolean
|
|
||
|
||||
shadernames(hnm)
|
string
|
|
||
|
||||
shapeattr(spa)
|
boolean
|
|
||
|
||||
shapenames(shn)
|
string
|
|
||
|
||||
showactive(sa)
|
boolean
|
|
||
|
||||
soloAsDiffuse(sod)
|
boolean
|
|
||
|
||||
stampDepth(stD)
|
float
|
|
||
|
||||
stampProfile(stP)
|
string
|
|
||
|
||||
stampSpacing(stS)
|
float
|
|
||
|
||||
strokesmooth(ssm)
|
string
|
|
||
|
||||
surfaceConformedBrushVertices(scv)
|
boolean
|
|
||
|
||||
tablet(tab)
|
boolean
|
|
||
|
||||
tangentOutline(to)
|
boolean
|
|
||
|
||||
textureFilenames(tfn)
|
boolean
|
|
||
|
||||
updateEraseTex(uet)
|
boolean
|
|
||
|
||||
usepressure(up)
|
boolean
|
|
||
|
||||
worldRadius(wlR)
|
float
|
|
||
|
||||
import maya.cmds as cmds
# Create a new 3d paint context, then switch to it
cmds.art3dPaintCtx('art3dPaintCtx1')
cmds.setToolTo('art3dPaintCtx1')
# Set art3dPaintCtx1's radius to 2.0, lowerradius to 0.5
cmds.art3dPaintCtx('art3dPaintCtx1', edit=True, r=2.0, lr=0.5)