CreateSymmetryMappingTemplate

導入

v2.0

詳細

オブジェクト シンメトリの定義に使用するモデルの下に、シンメトリ マッピング テンプレートを作成します。シンメトリ マッピング テンプレートはデフォーマ間にリレーションを作成します。

スクリプト構文

oReturn = CreateSymmetryMappingTemplate( [InputObj], [FillTemplate], [Symmetry Plane], [CreateSymmetryMap] );

戻り値

新しいシンメトリ マッピング テンプレートを戻します。

パラメータ

パラメータ タイプ 説明
InputObj 文字列 オブジェクトのリスト

デフォルト値: 現在選択されている値

FillTemplate Boolean 入力シンメトリ プレーンに基づきオブジェクト シンメトリ マップに自動的に入力するかどうかを指定します。

デフォルト値: True

Symmetry Plane Integer シンメトリ マップの生成にどの対称面を使用するかを指定します。

デフォルト値: 0 (YZ 平面)

指定可能な値:

説明:

0 YZ 平面
1 XZ 平面
2 XY 平面
CreateSymmetryMap Boolean 新しいシンメトリ マップ プロパティ マッピング ジオメトリを作成するかどうかを指定します。

デフォルト値: True

VBScript の例

'

' 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

関連項目

AddMappingRule DeleteMappingRule DeleteMappingRule GetNumMappingRules GetMappingRule SymEnvWeight