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

    Fixing Camera Aspect Ratio

    Scheduled Pinned Locked Moved Developers' Forum
    9 Posts 5 Posters 545 Views 5 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.
    • Dave RD Offline
      Dave R
      last edited by

      I was looking at a model I did awhile back and notice it has the gray bars on the sides showing the camera aspect ratio. I thought there was a snippet of code to put in the console to correct that but I searched and couldn't find it. Could someone point me to it? Was there an actual plugin written to correct restore the camera's aspect ratio to the size of the window?

      Etaoin Shrdlu

      %

      (THERE'S NO PLACE LIKE)

      G28 X0.0 Y0.0 Z0.0

      M30

      %

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

        Camera.aspect_ratio=0.0 should do it.

        edit: maybe not, i'll wait for someone who knows what theyre talking about.

        http://remusrendering.wordpress.com/

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

          Sketchup.active_model.active_view.camera.aspect_ratio = 0

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

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

            You can also use my V-Ray Toys plugin to set the aspect ratio. http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=15491&p=11972

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

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

              Or try FixAspectRatio

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

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

                How would you get those grey bars w.o film and stage or through ruby?

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

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

                  You can change the aspect ration with skindigo and thomthoms plugin, so i imagine theres a few more plugins out there that change the aspect ratio.

                  http://remusrendering.wordpress.com/

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

                    I see, thanks.

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

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

                      I think I got them with Skindigo.

                      Etaoin Shrdlu

                      %

                      (THERE'S NO PLACE LIKE)

                      G28 X0.0 Y0.0 Z0.0

                      M30

                      %

                      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