MaxscriptParticleContainer インタフェースは、パーティクル コンテナによって公開され、Particle Script ハンドラで使用できます。
プロパティ:
<particeContainer>.useTime : boolean : Read|Write true に設定された場合、スクリプトによるアクセスに、時間チャネルを使用できます。
<particeContainer>.useAge : boolean : Read|Write true に設定された場合、スクリプトによるアクセスに、エージ チャネルを使用できます。
<particeContainer>.useLifespan : boolean : Read|Write true に設定された場合、スクリプトによるアクセスに、スパン期間チャネルを使用できます。
<particeContainer>.useEventTime : boolean : Read|Writetrue に設定された場合、スクリプトによるアクセスに、イベント時間チャネルを使用できます。
<particeContainer>.usePosition : boolean : Read|Writetrue に設定された場合、スクリプトによるアクセスに、位置チャネルを使用できます。
<particeContainer>.useSpeed : boolean : Read|Writetrue に設定された場合、スクリプトによるアクセスに、速度チャネルを使用できます。
<particeContainer>.useAcceleration : boolean : Read|Writetrue に設定された場合、スクリプトによるアクセスに、加速度チャネルを使用できます。
<particeContainer>.useOrientation : boolean : Read|Writetrue に設定された場合、スクリプトによるアクセスに、方向チャネルを使用できます。
<particeContainer>.useSpin : boolean : Read|Writetrue に設定された場合、スクリプトによるアクセスに、スピン チャネルを使用できます。
<particeContainer>.useScale : boolean : Read|Writetrue に設定された場合、スクリプトによるアクセスに、スケール チャネルを使用できます。
<particeContainer>.useTM : boolean : Read|Writetrue に設定された場合、スクリプトによるアクセスに、TM (変換行列) チャネルを使用できます。
<particeContainer>.useSelected : boolean : Read|Writetrue に設定された場合、スクリプトによるアクセスに、選択チャネルを使用できます。
<particeContainer>.useShape : boolean : Read|Writetrue に設定された場合、スクリプトによるアクセスに、シェープ チャネルを使用できます。
<particeContainer>.useMtlIndex : boolean: Read|Writetrue に設定された場合、スクリプトによるアクセスに、マテリアル インデックス チャネルを使用できます。
<particeContainer>.useMapping : boolean: Read|Writetrue に設定された場合、スクリプトによるアクセスに、マッピング チャネルを使用できます。
<particeContainer>.useInteger : boolean : Read|Writetrue に設定された場合、スクリプトによるアクセスに、整数チャネルを使用できます。
<particeContainer>.useFloat : boolean : Read|Writetrue に設定された場合、スクリプトによるアクセスに、フロート チャネルを使用できます。
<particeContainer>.useVector : boolean : Read|Writetrue に設定された場合、スクリプトによるアクセスに、ベクトル チャネルを使用できます。
<particeContainer>.useMatrix : boolean : Read|Writetrue に設定された場合、スクリプトによるアクセスに、行列チャネルを使用できます。
<particeContainer>.particleIndex : index : Read|Write|Validated by Range: 1 to 100000000現在のパーティクル インデックスを取得/設定します。
<particeContainer>.particleID : index : Read|Write|Validated by Range: 1 to 100000000現在のパーティクル ID を取得/設定します。
<particeContainer>.particleNew : boolean : Readパーティクルがイベントに到着したかどうかを確認します。
<particeContainer>.particleTime : time : Read|Write現在のパーティクルの期間を取得/設定します。
<particeContainer>.particleAge : time : Read|Write|Validated by Range: 0f to 9e+006f現在のパーティクルのエージを取得/設定します。
<particeContainer>.particleLifespan : time : Read|Write|Validated by Range: 0f to 9e+006f現在のパーティクルのスパン期間を取得/設定します。
<particeContainer>.particleEventTime : time : Read|Write|Validated by Range: 0f to 9e+006fパーティクルが現在のイベントに存在する期間を取得/設定します。
<particeContainer>.particlePosition : point3 : Read|Write現在のパーティクルの位置を取得/設定します。
<particeContainer>.particleSpeed : point3 : Read|Write現在のパーティクルの速度を取得/設定します。
<particeContainer>.particleAcceleration : point3 : Read|Write現在のパーティクルの加速度を取得/設定します。
<particeContainer>.particleOrientation : point3 : Read|Write現在のパーティクルの方向を取得/設定します。
<particeContainer>.particleSpin : angleAxis : Read|Write現在のパーティクルのスピンを取得/設定します。
<particeContainer>.particleScale : float : Read|Write現在のパーティクルのサイズを取得/設定します。
<particeContainer>.particleScaleXYZ : point3 : Read|Write現在のパーティクルのスケールを取得/設定します。
<particeContainer>.particleTM : matrix3 : Read|Write現在のパーティクルの変換行列を取得/設定します。
<particeContainer>.particleSelected : boolean : Read|Writeパーティクルの選択状態を取得/設定します。
<particeContainer>.particleShape : mesh : Read|Writeパーティクル メッシュを取得/設定します。
<particeContainer>.particleInteger : integer : Read|Writeパーティクル毎のカスタム整数データを保存/検索します。
<particeContainer>.particleTestStatus : boolean : Read|Writeパーティクルのテスト状態を取得/設定します。
<particeContainer>.particleTestTime : time : Read|Write|Validated by Range: 0f to 9e+006fパーティクルのテスト期間を取得/設定します。
<particeContainer>.particleFloat : float : Read|Writeパーティクル毎のカスタム浮動小数点データを保存/検索します。
<particeContainer>.particleVector : point3 : Read|Writeパーティクル毎のカスタム ベクトル データを保存/検索します。
<particeContainer>.particleMatrix : matrix3 : Read|Writeパーティクル毎のカスタム行列データを保存/検索します。
particleMatrix チャネルを使用すると、1 つの matrix3 値または Point3 値 4 つのセット、あるいは 12 個の浮動小数点の値を保存できます。したがってこのチャネルは、多数の値を保存する必要のある場合に非常に広い用途に使用できます。matrix3 に関する章で示したように、matrix3 値のサブ要素に値を直接割り当てることはできません。Point3 または浮動小数点の値を particleMatrix チャネルに書き込むためには、最初に particleMatrix 値をユーザ変数に保存し、Point3 を行列のそれぞれの行に割り当てるか、Point3 の .x、.y、.z 要素のいずれかに浮動小数点の値を割り当て、それから、変数を particleMatrix チャネルに割り当てて戻します。
メソッド:
<IObject>getParticleContainer()パーティクル コンテナを取得します。
<object>getParticleSystem()パーティクル システム オブジェクトを取得します。
<node>getParticleSystemNode()パーティクル システム ノードを取得します。
<object array>getInitActions()アクション リスト内のすべてのアクション オブジェクトのリストを取得します。
<node array>getInitActionNodes()アクション リスト内のすべてのアクション ノードのリストを取得します。
<time>getTimeStart()進行間隔の開始時間を取得します。
<time>getTimeEnd()進行間隔の終了時間を取得します。
<void>setTimeEnd <time>timeパーティクルのすべてを所定の終了時間までは進めることはできない場合、できるだけ近い進行間隔の期間を設定します。
<void>setTimeEndPrecise <time>time <float>fraction期間と割合を指定することで、終了時間をより高い精度で設定します。
<node>getActionNode()アクション ノードを取得します。
<Interface>getIntegrator()パーティクル モーションを期間内で統合するプロシージャのインタフェースを取得します。「Interface: integrator」を参照してください。
<integer>randSign()ランダムな記号 (-1 または +1) を取得します。
<float>rand01()[0, 1]の間隔から、ランダムな数字を取得します。
<float>rand11()[-1, 1]の間隔から、ランダムな数字を取得します。
<float>rand55()[-0.5, 0.5]の間隔から、ランダムな数字を取得します。
<integer>rand0X<integer>maxNumber[0..maxNumber]の間隔から、ランダムな整数を取得します。
<point3>randSpherePoint()半径が 1 の球のサーフェスから、ランダムな 3D ポイントを取得します。
<point3>randDivergeVector <point3>vectorToDiverge <angle>maxAngle指定された maxAngle の角度を越えない範囲で、所定のベクトルから分岐するランダムなベクトルを取得します。
<integer>numParticles()現在のイベントのアクション リスト内のパーティクル数です。
<boolean>addParticle()単一のパーティクルを追加します。
パーティクルの追加期間を定義するには、.particleTime を使用します。パーティクル エージを 0 に設定するには、.particleAge=0 を使用します。パーティクルの位置、速度、方向などを定義するには、その他のメソッドを使用します。
<boolean>addParticles <integer>amount「amount」パーティクルを追加します。
<boolean>deleteParticle <index>index所定のインデックスの付いた単一のパーティクルを削除します。
<boolean>deleteParticles <index>startIndex <integer>amountstartIndex から開始して、「amount」パーティクルを削除します。
<index>getParticleID <index>particleIndex所定のインデックスの付いたパーティクルの ID を取得します。
<boolean>hasParticleID <index>particleID <&index>particleIndexparticleIndex は入/出力パラメータです
イベントに所定の ID のパーティクルが存在するかどうか確認します。
パーティクルが存在する場合は、particleIndex がパーティクルのインデックスになります。
<boolean>isParticleNew <index>particleIndexパーティクルがイベントに到着したかどうかを検査します。
<boolean>isParticleNewByID <index>particleID所定の ID のパーティクルがイベントに到着したかどうかを検査します。
<time>getParticleTime <index>particleIndexパーティクルの現在のステータスの期間を取得します。
<time>getParticleTimeByID <index>particleID指定された ID を持つパーティクルの期間を取得します。
<void>setParticleTime <index>particleIndex <time>timeパーティクルの現在のステータスの期間を変更します。
<void>setParticleTimePrecise <index>particleIndex <time>time <float>fractionフレーム タイムと割合の値を使用して、サブフレーム精度を持つインデックス付きパーティクルの期間を設定します。
<void>setParticleTimeByID <index>particleID <time>time指定された ID を持つパーティクルの期間を設定します。
<void>setParticleTimePreciseByID <index>particleID <time>time <float>fractionフレームと割合の値を指定して、サブフレーム精度を持つ指定された ID のパーティクルの期間を設定します。
<time>getParticleAge <index>particleIndexインデックスで指定されたパーティクルのエージを返します。
<time>getParticleAgeByID <index>particleID指定された ID を持つパーティクルのエージを返します。
<void>setParticleAge <index>particleIndex <time>ageインデックスで指定されたパーティクルのエージを設定します。
<void>setParticleAgeByID <index>particleID <time>age指定された ID を持つパーティクルのエージを設定します。
<time>getParticleLifespan <index>particleIndexインデックスで指定されたパーティクルのスパン期間を返します。
<time>getParticleLifespanByID <index>particleID指定された ID を持つパーティクルのスパン期間を返します。
<void>setParticleLifespan <index>particleIndex <time>lifespanインデックスで指定されたパーティクルのスパン期間を、指定された期間の値に設定します。
<void>setParticleLifespanByID <index>particleID <time>lifespan指定された ID を持つパーティクルのスパン期間を、指定された期間の値に設定します。
<time>getParticleEventTime <index>particleIndexインデックスで指定されたパーティクルのイベント期間を返します。
<time>getParticleEventTimeByID <index>particleID指定された ID を持つパーティクルのイベント期間を返します。
<void>setParticleEventTime <index>particleIndex <time>eventTimeインデックスで指定されたパーティクルのイベント期間を設定します。
<void>setParticleEventTimeByID <index>particleID <time>eventTime指定された ID を持つパーティクルのイベント期間を設定します。
<point3>getParticlePosition <index>particleIndexインデックスで指定されたパーティクルの位置を返します。
<point3>getParticlePositionByID <index>particleID指定された ID を持つパーティクルの位置を返します。
<void>setParticlePosition <index>particleIndex <point3>positionインデックスで指定されたパーティクルの位置を設定します。
<void>setParticlePositionByID <index>particleID <point3>position指定された ID を持つパーティクルの位置を設定します。
<point3>getParticleSpeed <index>particleIndexインデックスで指定されたパーティクルの速度を返します。
<point3>getParticleSpeedByID <index>particleID指定された ID を持つパーティクルの速度を返します。
<void>setParticleSpeed <index>particleIndex <point3>speedインデックスで指定されたパーティクルの速度を設定します。
<void>setParticleSpeedByID <index>particleID <point3>speed指定された ID を持つパーティクルの速度を設定します。
<point3>getParticleAcceleration <index>particleIndexインデックスで指定されたパーティクルの加速度を返します。
<point3>getParticleAccelerationByID<index>particleID指定された ID を持つパーティクルの加速度を返します。
<void>setParticleAcceleration <index>particleIndex <point3>accelerationインデックスで指定されたパーティクルの加速度を設定します。
<void>setParticleAccelerationByID <index>particleID <point3>acceleration指定された ID を持つパーティクルの加速度を設定します。
<point3>getParticleOrientation <index>particleIndexインデックスで指定されたパーティクルの方向を返します。
<point3>getParticleOrientationByID <index>particleID指定された ID を持つパーティクルの方向を返します。
<void>setParticleOrientation <index>particleIndex <point3>orientationインデックスで指定されたパーティクルの方向を設定します。
<void>setParticleOrientationByID <index>particleID <point3>orientation指定された ID を持つパーティクルの方向を設定します。
<angleAxis>getParticleSpin <index>particleIndexインデックスで指定されたパーティクルのスピンを返します。
<angleAxis>getParticleSpinByID <index>particleID指定された ID を持つパーティクルのスピンを返します。
<void>setParticleSpin <index>particleIndex <angleAxis>spinインデックスで指定されたパーティクルのスピンを設定します。
<void>setParticleSpinByID <index>particleID <angleAxis>spin指定された ID を持つパーティクルのスピンを設定します。
<float>getParticleScale <index>particleIndexインデックスで指定されたパーティクルのスケールを返します。
<float>getParticleScaleByID <index>particleID指定された ID を持つパーティクルのスケールを返します。
<void>setParticleScale <index>particleIndex <float>scaleインデックスで指定されたパーティクルのスケールを設定します。
<void>setParticleScaleByID <index>particleID <float>scale指定された ID を持つパーティクルのサイズを設定します。
<point3>getParticleScaleXYZ <index>particleIndexインデックスで指定されたパーティクルのスケールを返します。
<point3>getParticleScaleXYZByID <index>particleID指定された ID を持つパーティクルのスケールを返します。
<void>setParticleScaleXYZ <index>particleIndex <point3>scaleインデックスで指定されたパーティクルのスケールを設定します。
<void>setParticleScaleXYZByID <index>particleID <point3>scale指定された ID を持つパーティクルのスケールを設定します。
<matrix3>getParticleTM <index>particleIndex インデックスで指定されたパーティクルの変換行列を返します。
<matrix3> getParticleTMByID <index>particleID指定された ID を持つパーティクルの変換行列を返します。
<void>setParticleTM <index>particleIndex <matrix3>transformationMatrixインデックスで指定されたパーティクルの変換行列を設定します。
<void>setParticleTMByID <index>particleID <matrix3>transformationMatrix指定された ID を持つパーティクルの変換行列を設定します。
<boolean>getParticleSelected <index>particleIndexインデックスで指定されたパーティクルの選択されたステータスを返します。
<boolean>getParticleSelectedByID <index>particleID指定された ID を持つパーティクルの選択されたステータスを返します。
<void>setParticleSelected <index>particleIndex <boolean>selectedインデックスで指定されたパーティクルの選択されたステータスを設定します。
<void>setParticleSelectedByID <index>particleID <boolean>selected指定された ID を持つパーティクルの選択されたステータスを設定します。
<mesh>getParticleShape <index>particleIndexインデックスで指定されたパーティクルのシェイプをメッシュとして返します。
<mesh>getParticleShapeByID <index>particleID指定された ID を持つパーティクルのシェイプをメッシュとして返します。
<void>setParticleShape <index>particleIndex <mesh>shapeインデックスで指定されたパーティクルのシェイプを、指定されたメッシュに設定します。
<void>setParticleShapeByID <index>particleID <mesh>shape指定された ID を持つパーティクルのシェイプを、指定されたメッシュに設定します。
<void>setShapeForAllParticles <mesh>shapeすべてのパーティクルのシェイプを、指定されたメッシュに設定します。
<void>setParticleMtlIndex <index>particleIndex <index>materialIndexインデックスで指定されたパーティクルのマテリアル インデックスを設定します。
<void>setParticleMtlIndexByID <index>particleID <index>materialIndex指定された ID を持つパーティクルのマテリアル インデックスを設定します。
<void>setMtlIndexForAllParticles <index>materialIndexすべてのパーティクルのマテリアル インデックスを、指定されたインデックスの値に設定します。
<void>setParticleMapping <index>particleIndex <int>mapChannel <point3>mapValueインデックスで指定されたパーティクルのマッピングを、指定された Point3 型の値に設定します。
<void>setParticleMappingByID <index>particleID <int>mapChannel <point3>mapValue指定された ID を持つパーティクルのマッピングを、指定された Point3 型の値に設定します。
<void>setMappingForAllParticles <int>mapChannel <point3>mapValueすべてのパーティクルのマッピングを、指定された Point3 型の値に設定します。
<integer>getParticleInteger <index>particleIndexインデックスで指定されたパーティクルの整数のチャネル値を返します。
<integer>getParticleIntegerByID <index>particleID指定された ID を持つパーティクルの整数のチャネル値を返します。
<void>setParticleInteger <index>particleIndex <integer>integerValueインデックスで指定されたパーティクルの整数のチャネル値を、指定された整数値に設定します。
<void>setParticleIntegerByID <index>particleID <integer>integerValue指定された ID を持つパーティクルの整数のチャネル値を、指定された整数値に設定します。
<float>getParticleFloat <index>particleIndexインデックスで指定されたパーティクルの浮動小数点のチャネル値を返します。
<float>getParticleFloatByID <index>particleID指定された ID を持つパーティクルの浮動小数点のチャネル値を返します。
<void>setParticleFloat <index>particleIndex <float>floatValueインデックスで指定されたパーティクルの浮動小数点のチャネル値を設定します。
<void>setParticleFloatByID <index>particleID <float>floatValue指定された ID を持つパーティクルの浮動小数点のチャネル値を設定します。
<point3>getParticleVector <index>particleIndexインデックスで指定されたパーティクルのベクトルのチャネル値を返します。
<point3>getParticleVectorByID <index>particleID指定された ID を持つパーティクルのベクトルのチャネル値を返します。
<void>setParticleVector <index>particleIndex <point3>vectorValueインデックスで指定されたパーティクルのベクトルのチャネル値を設定します。
<void>setParticleVectorByID <index>particleID <point3>vectorValue指定された ID を持つパーティクルのベクトルのチャネル値を設定します。
<matrix3> getParticleMatrix <index>particleIndexインデックスで指定されたパーティクルの行列のチャネル値を返します。
<matrix3> getParticleMatrixByID <index>particleID指定された ID を持つパーティクルの行列のチャネル値を返します。
<void>setParticleMatrix <index>particleIndex <matrix3>matrixValueインデックスで指定されたパーティクルの行列のチャネル値を設定します。
<void>setParticleMatrixByID <index>particleID <matrix3>matrixValue指定された ID を持つパーティクルの行列のチャネル値を設定します。
<void>setParticleTestStatus <index>particleIndex <boolean>satisfy?インデックスで指定されたパーティクルのテスト ステータスを、指定されたブール値に設定します。
<void>setParticleTestStatusByID <index>particleID <boolean>satisfy?指定された ID を持つパーティクルのテスト ステータスを、指定されたブール値に設定します。
<void>setGlobalTestStatus <boolean>satisfy?すべてのパーティクルのテスト ステータスを、指定されたブール値に設定します。
<void>setParticleTestTime <index>particleIndex <time>timeインデックスで指定されたパーティクルのテスト期間を、指定された期間の値に設定します。
<void>setParticleTestTimePrecise <index>particleIndex <time>time <float>fractionインデックスで指定されたパーティクルのサブフレーム テスト期間を、指定された期間と割合の値に設定します。
<void>setParticleTestTimeByID <index>particleID <time>time指定された ID を持つパーティクルのテスト期間を、指定された期間の値に設定します。
<void>setParticleTestTimePreciseByID <index>particleID <time>time <float>fraction指定された ID を持つパーティクルのサブフレーム テスト期間を、指定された期間と割合の値に設定します。
<void>setGlobalTestTime <time>timeすべてのパーティクルのテスト期間を、指定された期間の値に設定します。
<void>setGlobalTestTimePrecise <time>time <float>fractionすべてのパーティクルのサブフレーム テスト期間を、指定された期間と割合の値に設定します。