オブジェクトが選択されている場合に、指定可能な VARIANT_TRUE (-1)または vARIANT_FALSE (0)で 2 つのIntegerのうち 1 つを戻します。
// get accessor Int32 CollectionItem.get_Selected( Int32 newVal ); |
| パラメータ | タイプ | 説明 |
|---|---|---|
| BranchFlag | siBranchFlag |
オブジェクトがノード選択されているかブランチ選択されているかを示します。 デフォルト値:siNode |
set oRoot = Application.ActiveProject.ActiveScene.Root
set oGroup = oRoot.AddGroup
set oMaterial = oGroup.AddMaterial("Phong")
Randomize time
if (rnd * 10) \ 5 = 1 then
SelectObj oMaterial
end if
set oItem = CreateObject("XSI.CollectionItem")
oItem.Value = oMaterial.FullName
if oItem.Selected then
logmessage "Material is selected"
else
logmessage "Material is not selected"
end if |