v1.0
エンベロープ デフォーマ オブジェクトのリファレンス ポーズに新しい値を設定します。 エンベロープが割り当てられた後は、エンベロープのリファレンス ポーズを変更できます。
Reset Actor コマンドの使用時に、エンベロープおよびそのデフォーマが戻る姿勢がリファレンス ポーズです。また、リファレンス ポーズは、近接度に応じてデフォーマに対するポイントの初期ウエイトを決定するポーズでもあります。
oReturn = SetEnvelopeRefPoses( [InputObjs] ); |
新しいエンベロープ デフォーマ オブジェクトを戻します。
'
' 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 |