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

    [ruby doc] View.corner (bar?)

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 3 Posters 809 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.
    • M Offline
      Matt666
      last edited by

      Hi !
      In the doc, (view.corner index) returns a point3D. In reality it returns a point in pixels. 😞 😮
      Any solution to convert it in a 3D point ??? 😒

      Thank you !

      Frenglish at its best !
      My scripts

      1 Reply Last reply Reply Quote 0
      • R Offline
        RickW
        last edited by

        Not offhand, but I did update the docs at http://groups.google.com/group/SketchUp-Plugins-Dev/web/

        EDIT: Perhaps using a pick helper?

        RickW
        [www.smustard.com](http://www.smustard.com)

        1 Reply Last reply Reply Quote 0
        • Didier BurD Offline
          Didier Bur
          last edited by

          Hi,
          I suggest you take the 2D point in pixels and use view.pixel_to_model to get the point in 3D where the corner of the viewport is, according to the current viewpoint.
          (Not tested myself, just a though).
          Salut Matt,

          EDIT: forget it, use pickray instead:

          "The pickray method is used to retrieve a ray passing through a given screen position in the viewing direction."

          DB

          1 Reply Last reply Reply Quote 0
          • M Offline
            Matt666
            last edited by

            Ok, thank you !
            It's so hard to play with screen dimension in SU... But I headed for solution !

            Thank you all !

            Frenglish at its best !
            My scripts

            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