PropertyTransfer

導入

v2.03

カテゴリ

operator

詳細

2 つのオブジェクト間でプロパティ データを転送するオペレータに接続します。 主にヘア プロパティに使用され、エミッタのサーフェイスで定義されます。

スクリプト構文

PropertyTransfer( [Target], PropObj );

パラメータ

パラメータ タイプ 詳細
Target List 転送されたプロパティを受け取るヘア オブジェクト

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

PropObj 文字列 転送する Map プロパティ

VBScript の例

' 
' This example shows how to transfer a property from a hair emitter
' to the hair object.  A weightmap is transferred and used to modulate
' the cut parameter of an hair object.
' 
NewScene , false
'Create hair
CreatePrim "Sphere", "MeshSurface"
ApplyHairOp "sphere"
'Install weightmap
SelectObj "sphere", , True
CreateWeightMap , , "Weight_Map"
SetValue "sphere.polymsh.cls.WeightMapCls.Weight_Map.weightmapop.type", 6
SetValue "sphere.polymsh.cls.WeightMapCls.Weight_Map.weightmapop.invert", True
'Transfer properties
PropertyTransfer "Hair", "sphere.polymsh.cls.WeightMapCls.Weight_Map"
'Connect the transferred weight map to the cut parameter of the hair object.
ApplyOp "MapCompOp", "sphere.polymsh.cls.WeightMapCls.Weight_Map;Hair.hair.Cut;Hair.hair.cls.WeightMapCls.Weight_Map"
'Display results. Note the effect of the weightmap on the hair object.
SetValue "Hair.hair.DisplayType", 1
SetValue "Hair.hair.DisplayPercentage", 50.0
SelectObj "sphere", , True
SetValue "Camera.camvis.objctrlpropmaps", True
SetDisplayMode "Camera", "constant"

関連項目

ApplyHairOp