Ruby command to rotate or move on axis.
-
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
CTRL + RIGHT Right will rotate object 90deg on blue axis
CTRL + Arrow Left will rotate object -90deg on blue axisgreen 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 redand so on
I hope this is possible , thank you.
-
That sort of thing is done with a Transformation. Look up Transformation in the SketchUp Ruby API documentation.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement