ProjectItem.Capabilities operator

説明

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

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