Garment_Maker : モディファイヤ

 
 
 
Garment_Maker-SuperClass:modifier; super-superclass:MAXWrapper -classID:#(940967468, 1610249612) 

Garment_Maker モディファイヤは、布のシミュレーションで使用できるようにシェイプを衣服パネルに変換します。しわや布らしい動きを実現するように最適なメッシュ処理を行います。

   

コンストラクタ:

Garment_Maker... Garmentize2 ... 

   

プロパティ:

<Garment_Maker>.density Float default: 1.0 -- float 

密度の値を取得/設定します。

   

<Garment_Maker>.autoMesh BooleanClass default: true -- boolean 

[オート メッシュ](Auto mesh)チェックボックスの状態を取得/設定します。既定値の true に設定すると、メッシュは自動的に実行されます。false に設定した場合は、UI の[メッシュ開始!](Mesh It)ボタンを押すか、以下で説明する gmakerOps.meshit() メソッドを呼び出してメッシュを手動で実行します。

   

<Garment_Maker>.preserve BooleanClass default: true -- boolean 

[保存](Preserve)チェックボックスの状態を取得/設定します。

   

<Garment_Maker>.relax BooleanClassdefault: false -- boolean 

   

<Garment_Maker>.outputType Integer default: 0 -- integer; Output_Type 

出力タイプ ラジオ ボタンの状態を取得/設定します。有効な値は次のとおりです。

0 - パネルの整列

1 - サーフェスの維持

2 - フラット パネル

   

<Garment_Maker>.figure UndefinedClassdefault: undefined -- node 

フィギュア オブジェクトを取得/設定します。

   

<Garment_Maker>.stretchMapping BooleanClass default: true -- boolean; Stretch_Mapping 

[マップ座標をストレッチ](Stretch Mapping Coordinates)チェックボックスの状態を取得/設定します。

   

<Garment_Maker>.striptexturescale Float default: 0.1 -- float; Stip_Texture_Scale 

ストリップ テクスチャ スケール値を取得/設定します。

   

<Garment_Maker>.stripwidth Float default: 0.5 -- float; Strip_Width 

ストリップの幅の値を取得/設定します。

   

<Garment_Maker>.showMesh BooleanClass default: false -- boolean; Show_Mesh 

メッシュを表示するかどうかを取得/設定します。

   

<Garment_Maker>.showSeams BooleanClass default: true -- boolean; Show_Seams 

シームを表示するかどうかを取得/設定します。

   

Garment Maker インタフェース:

Interface: gmakerOps 

   

メソッド:

<void>generateDescription() 

現在選択されているオブジェクトについての新しい MAXScript の説明を生成し、新しい[MAXScript エディタ](MAXScript Editor)ウィンドウにその説明を出力します。

出力例は次のようになります。

$.modifiers[#garmentmaker].setDensity 0.364000
$.modifiers[#garmentmaker].setSeamTolerance 0.060000
$.modifiers[#garmentmaker].setPanelMatrix 1 (matrix3 [1.000000, 0.000000, 0.000000] [0.000000, 1.000000, 0.000000] [0.000000, 0.000000, 1.000000] [0.000000, 0.000000, 0.000000] )
$.modifiers[#garmentmaker].setFlatPanelMatrix 1 (matrix3 [1.000000, 0.000000, 0.000000] [0.000000, 1.000000, 0.000000] [0.000000, 0.000000, 1.000000] [0.000000, 0.000000, 0.000000] )
$.modifiers[#garmentmaker].setPanelParams 1 1.000000 0 0.001000 0 1
$.modifiers[#garmentmaker].meshIt()

[オブジェクト](Object)ロールアウト

<void> setDensity <float>density 

布の密度を設定します。

   

<float> getDensity() 

布の密度を返します。

   

<void> meshIT() 

[メッシュ開始!](Mesh It!)ボタンを押した場合に対応しています。

   

<void> meshItPreserve() 

[メッシュ完了後に保存](Mesh It and Preserve)ボタンを押した場合に対応しています。

   

[パネル](Panels)ロールアウト

<void>setPanelParams<index>panel <float>density <integer>deform_type <float>curvature <integer>axis <integer>MatID 

インデックスで指定されたパネルのすべてのパラメータを、指定された値に設定します。

   

<integer> getPanelDeformType <index>panel 

インデックスで指定されたパネルの変形タイプを返します。

有効な値は次のとおりです。

0 - なし

1 - カーブ

   

<void> setPanelDeformType <index> panel <integer> deform_type 

インデックスで指定されたパネルの変形タイプを、指定された値に設定します。

有効な値は次のとおりです。

0 - なし

1 - カーブ

   

<float> getPanelDensity <index> panel 

インデックスで指定されたパネルの密度を返します。

   

<void> setPanelDensity <index> panel <float> density 

インデックスで指定されたパネルの密度を、指定された値に設定します。

   

<integer> getPanelMatID <index> panel 

インデックスで指定されたパネルのマテリアル ID を返します。

   

<void> setPanelMatID <index> panel <integer> MatID 

インデックスで指定されたパネルのマテリアル ID を、指定された ID に設定します。

   

<float> getPanelCurvature <index> panel 

インデックスで指定されたパネルの曲率を返します。

   

<void> setPanelCurvature <index> panel <float> curvature 

インデックスで指定されたパネルの曲率を、指定された値に設定します。

   

<integer> getPanelAxis <index> panel 

インデックスで指定されたパネルの軸を返します。

有効な値は次のとおりです。

0 - X 軸

1 - Y 軸

   

<void>setPanelAxis <index> panel <integer> axis 

インデックスで指定されたパネルの軸を設定します。

有効な値は次のとおりです。

0 - X 軸

1 - Y 軸

   

<index>getPanelFromSpline <index> spline 

所与のインデックスで指定されたスプラインで定義されたパネルのインデックスを返します。

   

<matrix3>getPanelMatrix <index> panel 

インデックスで指定されたパネルの行列を返します。

   

<void> setPanelMatrix <index> panel <matrix3> matrix 

インデックスで指定されたパネルの行列を、所与の matrix3 値に設定します。

   

<matrix3>getFlatPanelMatrix <index> panel 

インデックスで指定されたフラット パネルの行列を返します。

   

<void> setFlatPanelMatrix <index> panel <matrix3> matrix 

インデックスで指定されたフラット パネルの行列を、所与の matrix3 値に設定します。

   

[カーブ](Curves)ロールアウトおよび[縫い目](Seams)ロールアウト

<void>setSeamParamsByIndex <index>seam <float>bend_angle <float>bend_stiffness <boolean>enabled <float>sewing_stiffness 

インデックスで指定された継ぎ目のすべてのパラメータを、所与の値に設定します。

   

<void>ButtonCreateSeam() 

[縫い目を作成](Create Seam)ボタンを押した場合に対応しています。

   

<void>selectSplines <bitArray>sel 

所与の bitArray に定められたビットによって指定されたスプラインを選択します。

例:

theSpline = Donut()
addModifiers theSpline (Garment_Maker())
select theSpline
subObjectLevel = 1--change to Spline SO mode
theSpline.Garment_Maker.selectSplines #{1}--select the outer spline
sleep 1--wait a second
theSpline.Garment_Maker.selectSplines #{2}--select the inner spline
sleep 1--wait another second
theSpline.Garment_Maker.selectSplines #{1,2}--select both splines 

   

<integer>createSeamFromSplines <index> spline1 <index> spline2 <integer>orientation 

所与のインデックスで指定された 2 つのスプラインから、所与の方向で継ぎ目を作成します。

   

<string>makeMultiSegmentFromSplines<int array>indices 

所与の配列で指定されたインデックスで指定されたスプラインに対して[複数セグメントを作成](Make MultiSegment)ボタンを押した場合に対応しています。

   

<float>getSeamTolerance() 

継ぎ目許容値を返します。

   

<void>setSeamTolerance <float> tolerance 

継ぎ目許容度を指定された値に設定します。