• Login
sketchucation logo sketchucation
  • Login
⚠️ Attention | Having issues with Sketchucation Tools 5? Report Here

Move, Rotate and Scale on right click Menu

Scheduled Pinned Locked Moved Newbie Forum
sketchup
3 Posts 2 Posters 218 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.
  • B Offline
    broomstick
    last edited by 3 Apr 2013, 21:30

    Hi, I am posting a question to plugin developers: would it be difficult to have the three main tools, MOVE - ROTATE - SCALE, as selectable commands in the right click menu?

    Is there already a plugin that does so?

    I would find it useful for my workflow (I know there are shortcuts and stuff, but sometimes I can't use my left hand and clicking on the buttons slows me down).

    I hope to have some answers πŸ˜‰

    1 Reply Last reply Reply Quote 0
    • T Offline
      TIG Moderator
      last edited by 4 Apr 2013, 10:54

      This code adds Move/Scale/Rotate to the context-menu if something is selected.
      The code is very simple and can be adjusted as desired...

      require('sketchup.rb')
      unless file_loaded?(__FILE__)
      	UI.add_context_menu_handler{|menu|
      		if Sketchup.active_model.selection[0]
      			menu.add_item('Move...'){Sketchup.send_action("selectMoveTool;")}
      			menu.add_item('Scale...'){Sketchup.send_action("selectScaleTool;")}
      			menu.add_item('Rotate...'){Sketchup.send_action("selectRotateTool;")}
      		end
      	}
      end
      file_loaded(__FILE__)
      

      Put the rb file into your Plugins folder and restart Sketchup to see the additional commands in the context-menu...


      #MSR.rb

      TIG

      1 Reply Last reply Reply Quote 0
      • B Offline
        broomstick
        last edited by 4 Apr 2013, 11:53

        😍 😍 😍

        Thank you so much πŸ˜„

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

        Advertisement