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

    Convert Pixel values to Co-ordinates

    Scheduled Pinned Locked Moved Plugins
    5 Posts 3 Posters 589 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.
    • T Offline
      The Nazgul uk
      last edited by

      I'm trying to convert pixel values from the screen to the co-ordinates in sketchup. I can so far find the plane that the camera is in and the two vectors that define the plane. I also know the pixel values for the four corners of the viewing area, but can't work out how to link these to allow me to link the input of from the pixels. The co-ordinates will be plotted a plane which is parallel to the plane of the camera but shifted by an arbitrary amount using the normal vector. Any help would be much appreciated.

      Thanks

      1 Reply Last reply Reply Quote 0
      • jeff hammondJ Offline
        jeff hammond
        last edited by

        [i read your post once so i might not be fully understanding yet but..]

        maybe model just entering the coordinates as your base units?

        ie-
        pixel dimensions are 675x1200
        draw a rectangle 675x1200 units (inches, mm, feet, etc)
        scale to proper size if needed

        [edit - that said, what are you trying to achieve? there may be a better way to go about doing it?]

        dotdotdot

        1 Reply Last reply Reply Quote 0
        • T Offline
          The Nazgul uk
          last edited by

          What im trying to achieve to to draw a line between two pixels that are inputted and for there to be a line on sketchup between the points that these correspond to in the view.

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by

            Rather than reinvent the wheel look for this script

            Name : BMVB.rb

            Description : Draws a face that covers precisely current view

            Menu Item : Plugins\BringMyViewBack

            Author : Tomasz Marek

            http://www.tomaszmarek.eu/sketchup_1.html

            TIG

            1 Reply Last reply Reply Quote 0
            • T Offline
              The Nazgul uk
              last edited by

              The Bring My View Back plugin worked with a few tweaks, thanks so much.

              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