Making an objects parallel to a line. (lookat function)
-
Hi
I have posted before about trying to create a look_at function for sketchup.
http://forums.sketchucation.com/viewtopic.php?f=323&t=32233Well 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)
-
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 thought there were a couple "aim"-type scripts floating around. Honoluludesktop just wrote this one recently:
-
@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!
-
Then I too think it already exists. Check out Honolulu's script.
Advertisement