移動先: 概要 戻り値 フラグ. Python 例.
dynParticleCtx(
string
, [conserve=float], [cursorPlacement=boolean], [grid=boolean], [gridSpacing=float], [jitterRadius=float], [lowerLeftX=float], [lowerLeftY=float], [lowerLeftZ=float], [nucleus=boolean], [numJitters=int], [particleName=string], [sketch=boolean], [sketchInterval=int], [textPlacement=boolean], [upperRightX=float], [upperRightY=float], [upperZ=float])
注意: オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。
dynParticleCtx は 「元に戻す」が可能、「照会」が可能、「編集」が可能 です。
パーティクル コンテキスト コマンドでは、パーティクル コンテキストが作成されます。パーティクル コンテキストでは、パーティクル オブジェクトをインタラクティブに作成できます。パーティクル コンテキスト コマンドでは、コンテキストで実行される「particle」 コマンドのオプション値をツール プロパティ シートでインタラクティブに設定することもできます。
なし
戻り値の型は照会モードでは照会フラグが基になります。
conserve, cursorPlacement, grid, gridSpacing, jitterRadius, lowerLeftX, lowerLeftY, lowerLeftZ, nucleus, numJitters, particleName, sketch, sketchInterval, textPlacement, upperRightX, upperRightY, upperZ
: コマンドの作成モードで使用可能なフラグ
|
: コマンドの編集モードで使用可能なフラグ
|
: コマンドの照会モードで使用可能なフラグ
|
: タプルまたはリストとして渡された複数の引数を持てるフラグ
|
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.