sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Open layers from Custom Toolbar

    Scheduled Pinned Locked Moved Developers' Forum
    2 Posts 2 Posters 340 Views 2 Watching
    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