sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🚨 Skimp | 25% Off until March 30 Buy Now

    [ruby doc] View.corner (bar?)

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 3 Posters 912 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

        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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement