sketchucation logo sketchucation
    • Login
    ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

    Open layers from Custom Toolbar

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 2 Posters 325 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J Offline
      jblively
      last edited by

      Hello,

      I can do most items from within my custom tool bar, using this code here:
      result = Sketchup.send_action “action”

      and parameters like these:
      showRubyPanel:
      viewZoomExtents:
      viewZoomToSelection:
      viewUndo:
      selectOrbitTool:
      selectDollyTool:
      selectTurnTool:
      selectWalkTool:

      But I don't know what the code is to turn on the layers window. I've try a few guesses and nothing seems to work. Any tips?

      Thanks,

      Joe

      1 Reply Last reply Reply Quote 0
      • thomthomT Offline
        thomthom
        last edited by

        UI.show_inspector('Layers')
        http://code.google.com/apis/sketchup/docs/ourdoc/ui.html#show_inspector

        Thomas Thomassen — SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement