オブジェクトが選択されている場合に、指定可能な VARIANT_TRUE (-1)または vARIANT_FALSE (0)で2 つのIntegerのうち 1 つを戻します。
| パラメータ | タイプ | 詳細 |
|---|---|---|
| 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
|