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

Ruby command to rotate or move on axis.

Scheduled Pinned Locked Moved Developers' Forum
2 Posts 2 Posters 3.3k 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.
  • E Offline
    elfis
    last edited by 16 May 2018, 22:33

    Hi

    I was wondering is there ruby command to rotate or move in the axis.
    Using custom toolbar I would like to make few buttons to rotate and move a selected object and then assign a shortcut.

    For example:

    CTRL + ARROW Up will rotate object 90deg on red axis
    CTRL + ARROW Down will rotate object -90deg on red axis

    https://elfis.ie/X.gif

    CTRL + RIGHT Right will rotate object 90deg on blue axis
    CTRL + Arrow Left will rotate object -90deg on blue axis

    green still don't know 😆

    the same for moving

    Shift + ARROW Up will move object -100 units (inch/mm) on the red
    Shift + ARROW Up will move object 100 units (inch/mm) on the red

    and so on

    I hope this is possible , thank you.

    1 Reply Last reply Reply Quote 0
    • S Offline
      slbaumgartner
      last edited by 6 Jun 2018, 12:21

      That sort of thing is done with a Transformation. Look up Transformation in the SketchUp Ruby API documentation.

      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