• Login
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 15 Jul 2008, 14:54

    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 15 Jul 2008, 15:50

      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
      • D Offline
        Didier Bur
        last edited by 15 Jul 2008, 19:28

        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 18 Jul 2008, 09:08

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

          Advertisement