sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Horisontal AOV?

    Scheduled Pinned Locked Moved Developers' Forum
    37 Posts 6 Posters 2.0k Views 6 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.
    • Dan RathbunD Offline
      Dan Rathbun
      last edited by

      On this subject.. FOV a registry question.

      I noticed a setting in the registry Tools/FovDisplayMode
      my setting is 0

      What is this ?

      I'm not here much anymore.

      1 Reply Last reply Reply Quote 0
      • Chris FullmerC Offline
        Chris Fullmer
        last edited by

        You can switch between horizontal and vertical in the dialog window that pops up with:

        Sketchup.send_action(10624)

        I wonder if that registry setting controls that? That would be nice to be able to switch the user back and forth from horizontal and vertical as needed maybe?

        Otherwise, if its not that, I am out of ideas (for now).

        Chris

        Lately you've been tan, suspicious for the winter.
        All my Plugins I've written

        1 Reply Last reply Reply Quote 0
        • Chris FullmerC Offline
          Chris Fullmer
          last edited by

          Though FOV being horizontal or vertical seems to be associated with the model, not as an SU global setting. So it is probably not that then?

          Chris

          Lately you've been tan, suspicious for the winter.
          All my Plugins I've written

          1 Reply Last reply Reply Quote 0
          • thomthomT Offline
            thomthom
            last edited by

            The global default?

            Thomas Thomassen β€” SketchUp Monkey & Coding addict
            List of my plugins and link to the CookieWare fund

            1 Reply Last reply Reply Quote 0
            • Chris FullmerC Offline
              Chris Fullmer
              last edited by

              I suppose it could be, but if it is, the template file is overwriting it.

              Lately you've been tan, suspicious for the winter.
              All my Plugins I've written

              1 Reply Last reply Reply Quote 0
              • Dan RathbunD Offline
                Dan Rathbun
                last edited by

                @chris fullmer said:

                You can switch between horizontal and vertical in the dialog window that pops up with:
                Sketchup.send_action(10624)
                I wonder if that registry setting controls that? That would be nice to be able to switch the user back and forth from horizontal and vertical as needed maybe?

                I changed the setting to 1, and see no difference, in the model or in any of the settings in that Camera dialog.
                Could be an orphan setting left over from some earlier version.

                Why is there no menu choice or constant string to bring up that dialog?? Is this a WIN only feature?

                I'm not here much anymore.

                1 Reply Last reply Reply Quote 0
                • Chris FullmerC Offline
                  Chris Fullmer
                  last edited by

                  Yes, it seems to be Win only.

                  Lately you've been tan, suspicious for the winter.
                  All my Plugins I've written

                  1 Reply Last reply Reply Quote 0
                  • thomthomT Offline
                    thomthom
                    last edited by

                    Think it's a debug dialoge.

                    But I do wonder why one can set vertical or horisontal AOV from the UI. And why camera.aspect_ratio isn't exposed in the UI.

                    Thomas Thomassen β€” SketchUp Monkey & Coding addict
                    List of my plugins and link to the CookieWare fund

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

                      camera.fov always returns the 'vertical' fov. Many 3rd party apps you export to need the 'horizontal' fov - so fov = 30 degrees fovV >> ~52 degrees fovH...
                      My method does return fovH in degrees correctly: it's worked out from the only available bits via the API - i.e. camera.fov [vertical, in degrees] & camera.focal_length & the screen's width [ view.vpwith] or the camera.image_width, if that's set [it's >0 if you are using a specific 'camera type']... which can then be combined to get it... πŸ€“
                      You can get the camera.aspect_ratio as it's the ratio of the two fov's ??

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • thomthomT Offline
                        thomthom
                        last edited by

                        @tig said:

                        You can get the camera.aspect_ratio as it's the ratio of the two fov's ??

                        ?

                        You do get camera.aspect_ratio via the ruby API. But I was wondering why it is not part of the Sketchup UI to control.

                        Thomas Thomassen β€” SketchUp Monkey & Coding addict
                        List of my plugins and link to the CookieWare fund

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

                          The 'aspect_ratio' is both get-able and set-able using the camera methods... but it defaults to 0 and therefore the view's screen sizes come into play in setting other values...
                          The complex interaction of fov/focal_length/image_width/etc will potentially change it - I was suggesting you could get the ratio from which setting you want to 'fix' and then set the aspect_ratio to suit from that ??

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • 1
                          • 2
                          • 1 / 2
                          • First post
                            Last post
                          Buy SketchPlus
                          Buy SUbD
                          Buy WrapR
                          Buy eBook
                          Buy Modelur
                          Buy Vertex Tools
                          Buy SketchCuisine
                          Buy FormFonts

                          Advertisement