SIAddPropEx

導入

v1.0

詳細

既存のプロパティをオブジェクトに追加します。

UV クラスタ プロパティおよび頂点カラー プロパティは、完成しているクラスタにのみ追加できます。Geometry.AddCluster メソッドを参照してください。

スクリプト構文

SIAddPropEx( InputObj, Property, [PropagationType] );

パラメータ

パラメータ タイプ 説明
InputObj 文字列 プロパティを追加するオブジェクト
Property 文字列 追加するプロパティ
PropagationType siPropagationType プロパティのプロパゲーション タイプ

デフォルト値: siDefaultPropagation

VBScript の例

' The following example uses SIAddPropEx to first create 

' a property (annotation) and then add this property

' to an object.

Dim l_prop, l_preset

NewScene , false

Set l_preset = CreatePreset( "Annotation", "Properties" )

Set l_prop = CreateObjectFromPreset(l_preset, "MyAnnotation" )

CreatePrim "Cone", "MeshSurface"

SIAddPropEx "cone", l_prop

logMessage "the annotation property has been added to the cone"

関連項目

AddProp SIAddProp