SIAddPropEx
 
 
 

SIAddPropEx

Introduced

v1.0

Description

Adds an existing property to an object.

Notice that UV cluster properties and vertex color properties can only be added to clusters which are always complete, see Geometry.AddCluster method.

Scripting Syntax

SIAddPropEx( InputObj, Property, [PropagationType] );

Parameters

Parameter Type Description
InputObj String Object to which the property is added.
Property String Property to add
PropagationType siPropagationType propagation type for property

Default Value: siDefaultPropagation

Examples

VBScript Example

' 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"

See Also

AddProp SIAddProp