• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Open layers from Custom Toolbar

Scheduled Pinned Locked Moved Developers' Forum
2 Posts 2 Posters 325 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 4 Nov 2010, 17:17

    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
    • T Offline
      thomthom
      last edited by 4 Nov 2010, 22:28

      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
      1 / 1
      • First post
        1/2
        Last post
      Buy SketchPlus
      Buy SUbD
      Buy WrapR
      Buy eBook
      Buy Modelur
      Buy Vertex Tools
      Buy SketchCuisine
      Buy FormFonts

      Advertisement