SIApplyDeformBySpine

導入

v1.0

詳細

スプラインによるデフォメーションを適用します。これにより、オブジェクトおよび(または)クラスタは 1 つまたは複数のカーブのデフォメーションに応じてデフォームされます。

スクリプト構文

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

戻り値

新しく作成されたスパインの WeightMap オペレータのオブジェクト名を戻します。

パラメータ

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

ConnectionSet の第 1 のグループには、頂点ベースのオブジェクトが含まれます。 ConnectionSet の第 2 のグループには、NURBS カーブ オブジェクトが含まれます。 コマンドが実行されると、この引数は取得された ConnectionSet を戻します(たとえば、Interactive が TRUE である場合は、選択されているオブジェクトが戻される ConnectionSet に含まれます)。

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

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

Interactive Boolean 2 番目のグループが ConnectionSet に含まれていないときにオブジェクトを選択するように要求する場合は True。

デフォルト値: False

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

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

1. VBScript の例

'This example shows how to deform a grid using a circle.

'The circle is the curve spine used to deform the grid.

newscene

dim obj, crv

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

set crv = CreatePrim( "Circle", "NurbsCurve" )

Rotate crv, 90, 0, 0, siAbsolute, siParent, siObj, siX

Scale crv, 0.75, 0.75, 0.75, siAbsolute, siParent, siObj, siX

SIApplyDeformBySpine obj & ";" & crv

'moving the circle will deform the grid

Translate crv, 0, 5, 0, siAbsolute, siParent, siObj, siY

2. VBScript の例

' Create a Mesh Grid and Nurbs circle objects:

set CircleObj = CreatePrim( "Circle", "NurbsCurve" )

set GridObj = CreatePrim( "Grid", "MeshSurface" )

Rotate , 90, 0, 0

' Apply a Spine deform on the Grid, using the circle as deformer:

DeformSpineOp = SIApplyDeformBySpine( GridObj & ";" & CircleObj )

Application.LogMessage DeformSpineOp

' Now translate the circle and notice the deformation:

Translate CircleObj, 0, 0, 3

'========================================================

'OUTPUT:

'INFO : "grid.polymsh.cls.DeformBySpineWeightCls.Envelope_Weights.spinewgtmapop"

関連項目

ApplyDeformBySpine