Property.Branch

Property.Branch operator

説明

プロパティが親のブランチに適用されている場合は、True を戻します。

C#構文

// get accessor

Boolean rtn = Property.Branch;

// set accessor

Property.Branch = Boolean;

VBScript の例

'VBScript example demonstrating Property.Branch 

set oRoot = application.activeproject.activescene.root

set oCube = oRoot.AddGeometry("Cube","MeshSurface")

'When you add a property you can decide whether it should be

'applied to the branch or not: 

branchFlag = false

oCube.AddProperty "CustomProperty", branchFlag, "NoBranchPSet"

branchFlag = true

oCube.AddProperty "CustomProperty", branchFlag, "BranchPSet"

logmessage "NoBranchPSet Branch Flag: " & _

		oCube.Properties.Item("NoBranchPSet").Branch

logmessage "BranchPSet Branch Flag: " & _

		oCube.Properties.Item("BranchPSet").Branch

'Output of the script:

'INFO : "NoBranchPSet Branch Flag: False"

'INFO : "BranchPSet Branch Flag: True"

関連項目

siBranchFlag SceneItem.AddProperty SceneItem.Properties SceneItem.LocalProperties Scene.Properties XSIProject.Properties