ジャンプ先: 概要. 戻り値. フラグ. Python 例.
dynParticleCtx(
string
, [conserve=float], [cursorPlacement=boolean], [exists=boolean], [grid=boolean], [gridSpacing=float], [history=boolean], [image1=string], [image2=string], [image3=string], [jitterRadius=float], [lowerLeftX=float], [lowerLeftY=float], [lowerLeftZ=float], [name=string], [nucleus=boolean], [numJitters=int], [particleName=string], [sketch=boolean], [sketchInterval=int], [textPlacement=boolean], [upperRightX=float], [upperRightY=float], [upperZ=float])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
dynParticleCtx は、取り消し可能、照会可能、および編集可能です。
パーティクル コンテキスト コマンドでは、パーティクル コンテキストが作成されます。パーティクル コンテキストでは、パーティクル オブジェクトをインタラクティブに作成できます。パーティクル コンテキスト コマンドでは、コンテキストで実行される「particle」 コマンドのオプション値をツール プロパティ シートでインタラクティブに設定することもできます。なし
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
| ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
|---|---|---|---|---|
conserve(c)
|
float
|
|
||
|
||||
cursorPlacement(cp)
|
boolean
|
|
||
|
||||
exists(ex)
|
boolean
|
|
||
|
||||
grid(gr)
|
boolean
|
|
||
|
||||
gridSpacing(grs)
|
float
|
|
||
|
||||
history(ch)
|
boolean
|
|
||
|
||||
image1(i1)
|
string
|
|
||
|
||||
image2(i2)
|
string
|
|
||
|
||||
image3(i3)
|
string
|
|
||
|
||||
jitterRadius(jr)
|
float
|
|
||
|
||||
lowerLeftX(llx)
|
float
|
|
||
|
||||
lowerLeftY(lly)
|
float
|
|
||
|
||||
lowerLeftZ(llz)
|
float
|
|
||
|
||||
name(n)
|
string
|
|
||
|
||||
nucleus(nc)
|
boolean
|
|
||
|
||||
numJitters(nj)
|
int
|
|
||
|
||||
particleName(pn)
|
string
|
|
||
|
||||
sketch(sk)
|
boolean
|
|
||
|
||||
sketchInterval(ski)
|
int
|
|
||
|
||||
textPlacement(tp)
|
boolean
|
|
||
|
||||
upperRightX(urx)
|
float
|
|
||
|
||||
upperRightY(ury)
|
float
|
|
||
|
||||
upperZ(urz)
|
float
|
|
||
|
||||
import maya.cmds as cmds cmds.dynParticleCtx( 'dynParticleContext', e=True, nj=5, jr=1.5 ) # Set the option values for number of jitters to 5 and jitter # radius to 1.5 in the particle context, which will result in # creating 5 particles for each mouse click in the viewport, # randomly placed, but all within 1.5 units of the mouse click.