sketchucation logo sketchucation
    • Login
    ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

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

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 3 Posters 277 Views
    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

      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
      • Chris FullmerC Offline
        Chris Fullmer
        last edited by

        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

          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

            @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
            • Chris FullmerC Offline
              Chris Fullmer
              last edited by

              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
              • First post
                Last post
              Buy SketchPlus
              Buy SUbD
              Buy WrapR
              Buy eBook
              Buy Modelur
              Buy Vertex Tools
              Buy SketchCuisine
              Buy FormFonts

              Advertisement