AddCustomProperty (SceneItem)

Description

Create and add an empty CustomProperty to a SceneItem object. This method is only suitable for building a new CustomProperty object from scratch. To create a CustomProperty that has already been defined in a Preset or PluginItem use SceneItem.AddProperty.

Scripting Syntax

SceneItem.AddCustomProperty( [Name], [BranchFlag] )

C# Syntax

CustomProperty SceneItem.AddCustomProperty( String in_name, Boolean in_Branch );

Parameters

Parameter

Type

Description

Name

String

Represents the name of the new custom property

BranchFlag

Boolean

Add property on branch or the node of object.

Default Value: false

Return Value

CustomProperty

Examples

VBScript Example

'VBScript example
set sceneItem = Application.ActiveProject.ActiveScene.Root.AddNull
set prop = sceneItem.AddCustomProperty
LogMessage "SceneItem's custom property name: " & prop.FullName


SOFTIMAGE|XSI v6.01     

Return to Softimage XSI Index