空の CustomProperty を作成し、SceneItem オブジェクトに追加します。このメソッドは、新しい CustomProperty オブジェクトを一から作成する場合にのみ適しています。すでにプリセットや PluginItem で定義されている CustomProperty を作成する場合は、SceneItem.AddProperty を使用します。
CustomProperty SceneItem.AddCustomProperty( String in_name, Boolean in_Branch ); |
oReturn = SceneItem.AddCustomProperty( [Name], [BranchFlag] ); |
| パラメータ | タイプ | 説明 |
|---|---|---|
| Name | String | 新しいカスタムプロパティの名前を表します。 |
| BranchFlag | Boolean |
ブランチまたはオブジェクトのノードにプロパティを追加します。 デフォルト値: false |
'VBScript example set sceneItem = Application.ActiveProject.ActiveScene.Root.AddNull set prop = sceneItem.AddCustomProperty LogMessage "SceneItem's custom property name: " & prop.FullName |