Rotate to Mouse point (Light LookAt tool) Plugin Help
-
Hi,
I am trying to create a tool/plugin which when a light(or any object) is selected,
It rotates the object/light to where the mouse is.for example, if I click on a light, right click to activate the tool and then click on a surface, the light points to(looks at) the surface the mouse was on.
This was easily achievable in other 3D tools because it was easy to get the currently selected object, get the point of the mouse and then call a function like LookAt(x,y,z).
I was wondering if this was possible in Sketchup and how I would achieve it.
Could someone please help me in pointing me in the right direction with some sample code or similar examples?
Thanks in advance.
-
Try Tig's Free Rotate for this. It's Sweet!
http://forums.sketchucation.com/viewtopic.php?f=323&t=30380&p=274784&hilit=free+rotate#p274784
-
@teknoel said:
Try Tig's Free Rotate for this. It's Sweet!
http://forums.sketchucation.com/viewtopic.php?f=323&t=30380&p=274784&hilit=free+rotate#p274784
Thanks a lot. it looks very helpful
Advertisement