ProjectItem.Selected.1.vbs Example
Applies To
ProjectItem.Selected property
Description
This example demonstrates how to determine if the object is node or branch selected.
Code
NewScene , false set oSphere = Application.ActiveProject.ActiveScene.Root.AddGeometry( "Sphere", "NurbsSurface" ) if oSphere.Selected then Application.LogMessage "Sphere is selected" else Application.LogMessage "Sphere is NOT selected" end if SelectObj "sphere", "BRANCH", True if oSphere.Selected(1) then Application.LogMessage "Sphere is branch-selected" else Application.LogMessage "Sphere is NOT branch-selected" end if ' Expected result: 'INFO : Sphere is NOT selected 'INFO : Sphere is branch-selected
Keywords
ProjectItem Selected
Autodesk Softimage 2011