SceneItem.ApplyEnvelope

説明

フレキシブルエンベロープを、指定されたオブジェクトに適用します。

注:エンベロープは、いくつかの異なるタイプの x3DObject(たとえば、NURBSまたはメッシュ 3d オブジェクト)に適用できます。ただし、Clusterのうち、エンベロープを適用できるタイプは、頂点(ポイント)クラスタタイプ(siVertexCluster)に限られます。

スクリプト 構文

oReturn = SceneItem.ApplyEnvelope( Deformers, [DeformOnBranch], [EnvelopeOnBranch] );

戻り値

Envelope

パラメータ

パラメータ タイプ 詳細
デフォーマ SceneItemCollectionSceneItemオブジェクト、またはExpression エンベロープデフォーマとして割り当てられるオブジェクト
DeformOnBranch siBranchFlag デフォーマブランチ内にあるすべてのオブジェクトを使用します。

デフォルト値: siUnspecified

EnvelopeOnBranch siBranchFlag エンベロープを、SceneItem のブランチにあるすべてのオブジェクトに適用します。

デフォルト値: siUnspecified

VBScript の例

'VBScript example
set oRoot = Application.ActiveProject.ActiveScene.Root
set oSkin = oRoot.AddGroup
set oSkeleton = oRoot.AddModel
set oRLeg = oRoot.AddGeometry( "Cylinder","MeshSurface")
oSkin.AddMember oRLeg
set oLLeg = oRoot.AddGeometry( "Cylinder","MeshSurface")
oSkin.AddMember oLLeg
set oChainRoot = oSkeleton.Add3DChain
' apply envelope to geometry branch using
set oEnvelope = oSkin.ApplyEnvelope( oSkeleton, siBranch, siBranch )