Ruby command to rotate or move on axis.

Ruby command to rotate or move on axis.

Postby elfis » Wed May 16, 2018 11:33 pm

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 axis

green still don't know :lol:

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.
0

elfis 
 

Re: Ruby command to rotate or move on axis.

Postby slbaumgartner » Wed Jun 06, 2018 1:21 pm

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

slbaumgartner 
PluginStore Author
PluginStore Author
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Developers' Forum

Who is online

Users browsing this forum: gnlmrc60b22f205v, lepius and 5 guests

Visit our sponsors: