• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Making an objects parallel to a line. (lookat function)

Scheduled Pinned Locked Moved Developers' Forum
5 Posts 3 Posters 277 Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    jaylee
    last edited by 1 Dec 2010, 06:26

    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)

    1 Reply Last reply Reply Quote 0
    • C Offline
      Chris Fullmer
      last edited by 1 Dec 2010, 17:09

      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

      Lately you've been tan, suspicious for the winter.
      All my Plugins I've written

      1 Reply Last reply Reply Quote 0
      • J Offline
        Jim
        last edited by 1 Dec 2010, 18:46

        I thought there were a couple "aim"-type scripts floating around. Honoluludesktop just wrote this one recently:

        http://forums.sketchucation.com/viewtopic.php?t=31926

        Hi

        1 Reply Last reply Reply Quote 0
        • J Offline
          jaylee
          last edited by 1 Dec 2010, 22:06

          @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!

          1 Reply Last reply Reply Quote 0
          • C Offline
            Chris Fullmer
            last edited by 2 Dec 2010, 05:04

            Then I too think it already exists. Check out Honolulu's script.

            Lately you've been tan, suspicious for the winter.
            All my Plugins I've written

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            1 / 1
            • First post
              2/5
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement