SetEnvelopeRefPoses

導入

v1.0

カテゴリ

property

詳細

エンベロープ デフォーマ オブジェクトのリファレンス ポーズに新しい値を設定します。 エンベロープが割り当てられた後は、エンベロープのリファレンス ポーズを変更できます。

Reset Actor コマンドの使用時に、エンベロープおよびそのデフォーマが戻る姿勢がリファレンス ポーズです。 また、リファレンス ポーズは、近接度に応じてデフォーマに対するポイントの初期ウエイトを決定するポーズでもあります。

スクリプト構文

oReturn = SetEnvelopeRefPoses( [InputObjs] );

戻り値

新しいエンベロープ デフォーマ オブジェクトを戻します。

パラメータ

パラメータ タイプ 詳細
InputObjs 文字列 エンベロープ デフォーマ オブジェクトのリスト

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

VBScript の例

'
' This example sets a new reference pose on a null object used 
' as a deformer for a sphere. 
'
NewScene , false
' Create the null to use as a deformer
set oDeformer = GetPrim("Null")
' Create the sphere to deform
set oEnvelope = CreatePrim( "Sphere", "NurbsSurface" )
' Assign the deformer to the envelope
ApplyFlexEnv oEnvelope & ";" & oDeformer, False
' Change the position of the deformer so that we have a different
' position to use as the new reference pose 
Translate oDeformer, 3.21404651141284, 2.8656647389832, _
                -0.28656647389832, siRelative, siView, siObj, siXYZ
' Set new values for the envelope's ref poses
SetEnvelopeRefPoses oDeformer
' Move the deformer around. Once you use ResetActor, the sphere
' and null will snap back to the new reference pose
'ResetActor

関連項目

SIApplyFlexEnv