SIApplyDeformByCage

導入

v2.0

詳細

ケージでデフォメーションを適用します。

スクリプト構文

oReturn = SIApplyDeformByCage( [ConnectionSet], [Interactive], [ConstructionMode] );

戻り値

作成された CageAutoAssignOp オペレータおよび CageDeformOp オペレータを含む XSICollection を戻します。

パラメータ

パラメータ タイプ 説明
ConnectionSet ConnectionSet オペレータに接続されるオブジェクトを指定します。

ConnectionSet の第 1 のグループには、頂点ベースのオブジェクトが含まれます。 ConnectionSet の第 2 のグループには、ジオメトリック オブジェクトが含まれます。

デフォルト値:現在選択されているオブジェクトをメイン グループとして使用

警告: 接続セットが無効だと、エラーが発生します。 スクリプトの中断を防ぐため、このオペレータに必要な接続セットを確認してください。

Interactive Boolean True を設定すると、オブジェクトを選択するようユーザに要求します。

デフォルト値: False

ConstructionMode siConstructionMode オペレータを適用するコンストラクション モードを指定します。

デフォルト値:現在のコンストラクション モードを使用

VBScript の例

'This example creates a cage deformer (cube) over a sphere and a torus.

'Then, the cube is deformed by a taper, and the deformation is reflected

'on the sphere and the torus because of the DeformByCage operator.

NewScene

dim obj, obj1, cage

set obj = CreatePrim( "Sphere", "MeshSurface" )

set obj1 = CreatePrim( "Torus", "MeshSurface" )

set cage = CreatePrim( "Cube", "MeshSurface" )

'Apply the DeformByCage, with no picking session

SIApplyDeformByCage obj & "," & obj1 & ";" & cage, False

'If we deform the cage, it will deform obj and obj1:

ApplyOp "Taper", cage, 3, siPersistentOperation