v1.0
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.
SIAddPropEx( InputObj, Property, [PropagationType] ); |
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 |
' 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" |