ProjectItem.Capabilities operator

説明

オブジェクトの機能すべてのマスクを Long として戻します。

C#構文

// get accessor

siCapabilities rtn = ProjectItem.Capabilities;

VBScript の例

'

' This example demonstrates how to read the object's capabilities

'

NewScene , false

set oCylinder = CreatePrim( "Cylinder", "MeshSurface" )

Application.LogMessage "The cylinder has these capabilities: " & oCylinder.Capabilities

' Hide the cylinder from the scene explorer

oCylinder.SetCapabilityFlag siReadOnly, true 

Application.LogMessage "Now the cylinder has these capabilities: " & oCylinder.Capabilities

' Expected results:

'INFO : The cylinder has these capabilities: 32772

'INFO : Now the cylinder has these capabilities: 32774

関連項目

ProjectItem.SetCapabilityFlag siCapabilities