ジャンプ先: 概要. 戻り値. フラグ. Python 例.
greasePencilCtx([autoCreateFrames=boolean], [canDraw=boolean], [createOrEditFrame=int], [exists=boolean], [exportArchive=[string, string]], [fileTextureSize=int], [greasePencilType=int], [image1=string], [image2=string], [image3=string], [importArchive=string], [makeStroke=uint], [removeFrame=int], [resetBrushes=boolean], [rgbcolor=[float, float, float]], [sequenceNodeName=string])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
greasePencilCtx は、取り消し可能、照会可能、および編集可能です。
これは、グリース ペンシル ツール用のツール コンテキスト コマンドです。なし
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
|---|---|---|---|---|
autoCreateFrames(acf)
|
boolean
|
|
||
|
||||
canDraw(cd)
|
boolean
|
|
||
|
||||
createOrEditFrame(cef)
|
int
|
|
||
|
||||
exists(ex)
|
boolean
|
|
||
|
||||
exportArchive(eac)
|
[string, string]
|
|
||
|
||||
fileTextureSize(fts)
|
int
|
|
||
|
||||
greasePencilType(gpt)
|
int
|
|
||
|
||||
image1(i1)
|
string
|
|
||
|
||||
image2(i2)
|
string
|
|
||
|
||||
image3(i3)
|
string
|
|
||
|
||||
importArchive(iac)
|
string
|
|
||
|
||||
makeStroke(mst)
|
uint
|
|
||
|
||||
removeFrame(rf)
|
int
|
|
||
|
||||
resetBrushes(rb)
|
boolean
|
|
||
|
||||
rgbcolor(rgb)
|
[float, float, float]
|
|
||
|
||||
sequenceNodeName(snn)
|
string
|
|
||
|
||||
import maya.cmds as cmds
# Create a new grease pencil context, then switch to it
cmds.greasePencilCtx('greasePencilCtx1')
cmds.setToolTo('greasePencilCtx1')