Verifies that a toolbar group in a currently open toolbar collection is visible.
rhinoscriptsyntax.IsToolbarVisible(name, toolbar_group)
rhinoscript.toolbar.IsToolbarVisible(name, toolbar_group)
name |
Required. String. The name of a currently open toolbar collection. |
toolbar_group |
Required. String. The name of a toolbar group in the collection to verify. |
Boolean |
True or false indicating success or failure. |
None |
On error. |
import rhinoscriptsyntax as rs
file = "C:\\SteveBaer\\AppData\\Roaming\\McNeel\\Rhinoceros\\5.0\\UI\\default.rui"
name = rs.IsToolbarCollection(file)
if name:
if rs.IsToolbarVisible(name, "Layer"): print "The Layer toolbar is visible."
else: print "The Layer toolbar is not visible."