@chris fullmer said:
Does it have to use a specified face in the component, or can it just use the component's axis? Using the components axis would be a little easier to code.
Chris
I think an axis would work perfectly as well!
@chris fullmer said:
Does it have to use a specified face in the component, or can it just use the component's axis? Using the components axis would be a little easier to code.
Chris
I think an axis would work perfectly as well!
Hi
I have posted before about trying to create a look_at function for sketchup.
http://forums.sketchucation.com/viewtopic.php?f=323&t=32233
Well the fact is that I wasnt skilled enough to be able to learn from that code and derive a simple lookAt function from it.
I was wondering if it someone was able to create a lookat function where if you input the object, the face of the object that will be facing the target point, target point3d, it will rotate the object so that the selected object rotates and faces the target point?
For example : lookAt(object, face, targetPoint)
@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
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.