Object Hierarchy | 関連する C++クラス:Dictionary
Dictionary
v1.5
Dictionary オブジェクトには、siFamily オブジェクトなどのアプリケーション定義が含まれます。また、Dictionary.GetObject メソッドでオブジェクトパス名を使用し、オブジェクトを取得すると非常に便利です。Dictionary オブジェクトは Application オブジェクトのメンバです。
注:このオブジェクトは、JScript と VBScript で使用可能な"Scripting.Dictionary" ActiveX オブジェクトと混同しないようにしてください。Scripting.Dictionary オブジェクトは名前が付けられた値をコレクションするときに便利です。これに対し、オブジェクトは Softimage オブジェクトについてのみ情報を提供します。ヒント:オブジェクトモデル内で使用できるファミリのリストについては、siFamily を参照してください。
' *******************************************************************
' Demonstrate usage of the Dictionary.Info method with Name parameter
' *******************************************************************
' Get specific info on ClusterCenter
LogMessage Application.Dictionary.Info("ClusterCenter")
' OUTPUT IS:
'INFO : "ClusterCenter
'Families = Operators, DeformOperators
'Number Of Groups = 2
'
' Group(0)
' Flags = E3DOPGROUP_MAIN
' Bounds = 1..1
' Filter = Components for Deforms
' Pick Prompt = Deformation Value
'
' Group(1)
' Flags =<undefined>
' Bounds = 1..1
' Filter = <undefined>
' Pick Prompt = Cluster center object
'
'" |
' ********************************************************************* ' Demonstrate usage of the Dictionary.Info method with Family parameter ' ********************************************************************* ' Get list of available groups LogMessage Dictionary.Info(,siGroupFamily) ' OUTPUT IS: 'INFO : "3D group, Entity Name, Partition, Layer, User group, Partition" |
' ****************************************************
' Demonstrate usage of the Dictionary.GetObject method
' ****************************************************
' Create a new cone named "foozibarr"
ActiveSceneRoot.AddGeometry "Cone", "MeshSurface", "foozibarr"
' Find the subdivu parameter from the cone
Set oSubdivuParam = Dictionary.GetObject("foozibarr.polymsh.geom.subdivu")
Application.LogMessage "Found a " & oSubdivuParam.Type & " (" & ClassName(oSubdivuParam) & ")"
' Find the cone by its name
Set oCone = Dictionary.GetObject("foozibarr")
Application.LogMessage "Found a " & oCone.Type & " (" & ClassName(oCone) & ")"
' OUTPUT OF ABOVE SCRIPT:
'INFO : "Found a Parameter (CollectionItem)"
'INFO : "Found a polymsh (X3DObject)" |