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

    Ruby command to rotate or move on axis.

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

      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

        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