v2.0
property
オブジェクト シンメトリの定義に使用するモデルの下に、シンメトリ マッピング テンプレートを作成します。 シンメトリ マッピング テンプレートはデフォーマ間にリレーションを作成します。
oReturn = CreateSymmetryMappingTemplate( [InputObj], [FillTemplate], [Symmetry Plane], [CreateSymmetryMap] ); |
新しいシンメトリ マッピング テンプレートを戻します。
| パラメータ | タイプ | 詳細 | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| InputObj | 文字列 | オブジェクトのリスト
デフォルト値: 現在選択されている値 |
||||||||
| FillTemplate | ブール | 入力シンメトリ プレーンに基づきオブジェクト シンメトリ マップに自動的に入力するかどうかを指定します。
デフォルト値: True |
||||||||
| Symmetry Plane | Integer | シンメトリ マップの生成にどの対称面を使用するかを指定します。
デフォルト値: 0 (YZ 平面)
|
||||||||
| CreateSymmetryMap | ブール | 新しいシンメトリ マップ プロパティ マッピング ジオメトリを作成するかどうかを指定します。
デフォルト値: True |
'
' This example creates 2 symmetrical bones and envelopes them inside a
' sphere. Then it creates a symmetry mapping template for the envelope
' and finishes by displaying the new template's property page.
'
' Create a sphere that we will use as an envelope
set oEnvelope = CreatePrim( "Sphere", "MeshSurface" )
' Create the bones that will be used to deform the envelope
set oRoot1 = Create2DSkeleton( 0.000, 3.000, 0.000, -2.000, 1.000, _
0.000, 0.000, 0.000, 0.000, 4 )
AppendBone , -2.000, -2.000, 0.000
set oRoot2 = Create2DSkeleton( 0.000, 3.000, 0.000, 2.000, 1.000, _
0.000, 0.000, 0.000, 0.000, 4 )
AppendBone , 2.000, -2.000, 0.000
' Assign the envelope to the skeleton (notice here I have used "B:"
' to indicate that I want to select the objects in Branch mode so that
' the connection set will include the effectors as well as the roots;
' otherwise the flexible envelope will not be assigned properly.
ApplyFlexEnv oEnvelope & ";B:" & oRoot1 & ",B:" & oRoot2, False
' Create a symmetry mapping template
set oTemplate = CreateSymmetryMappingTemplate( oEnvelope, True, 0, True )
' Display the property page for the new template
InspectObj oTemplate
|