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

    Black transparent borders when exporting animation

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    17 Posts 6 Posters 1.6k 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.
    • thomthomT Offline
      thomthom
      last edited by

      Something has changed the aspect ratio of the camera.

      Type this into the Ruby Console:
      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
      • soloS Offline
        solo
        last edited by

        Cool script, anyway to have it as a right click option for future use?

        http://www.solos-art.com

        If you see a toilet in your dreams do not use it.

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

          My V-Ray Toys has a feature to adjust the aspect ratio of the SU camera.
          You don't actually need V-Ray to use the plugin.

          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
            rubius
            last edited by

            Thank you thomthom.

            Unfortunately, it doesn't look to work. I pasted it (and enter) in the ruby console, and tested again. Same borders 😞

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

              Do you have some rendering plugin installed? I think I remember some mentioned here that sets the SU camera automatically based on the render settings.

              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
                rubius
                last edited by

                yes, I have installed Thea plugin for sketchup. It could have some sense? Actually the old scenes in that model work and they were set before installing the plugin. But if I make a test with a new model, from scratch, everything is ok... πŸ˜•

                1 Reply Last reply Reply Quote 0
                • GaieusG Offline
                  Gaieus
                  last edited by

                  Also, there is "FixAspectRatio" at Smustard's:
                  http://www.smustard.com/script/FixAspectRatio

                  But that should actually do the same trick as thomthom's snipplet.

                  Indeed there are rendering plugins that do this(an earlier version of Twilight for instance). Very useful if you need it - can indeed be annoying when you don't

                  Gai...

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

                    So the only way to fix my problem with this model is to temporarily unistall Thea plugin or is there something else?

                    1 Reply Last reply Reply Quote 0
                    • GaieusG Offline
                      Gaieus
                      last edited by

                      I'm not sure it is Thea plugin. Most of the renderers that do this work from inside SU. Maybe ask Tomasz (author of the plugin) if he knows anything about it.
                      Have you tried the smustard plugin I linked above?


                      Edit: I tried to export something with a different aspect ratio as my SU window to Thea and it did not put these bars in.

                      Gai...

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

                        @gaieus said:

                        I'm not sure it is Thea plugin. Most of the renderers that do this work from inside SU. Maybe ask Tomasz (author of the plugin) if he knows anything about it.
                        Have you tried the smustard plugin I linked above?


                        Edit: I tried to export something with a different aspect ratio as my SU window to Thea and it did not put these bars in.

                        Yes, thank you for the link. I tried it and the bars disappeared from my view while working (I "refreshed" my scenes after applying the plugin and they seemed to be fine) but come back when exporting animation. (also tried to "freeze" thea plugin putting it in a zip file but is the same).

                        EDIT: Actually, while working in the 3d model, when the image is still now the aspect ratio is ok. But when I pass from a scene to another. During the transition the borders come back. When the image is "stopping" the borders now disappeare again.

                        1 Reply Last reply Reply Quote 0
                        • N Offline
                          notareal
                          last edited by

                          If you have set custom camera by SU2Thea, simply change camera back to original (SU2Thea exporter > Scenes > SU Window in view parameters).

                          Welcome to try [Thea Render](http://www.thearender.com/), Thea support | [kerkythea.net](http://www.kerkythea.net/) -team member

                          1 Reply Last reply Reply Quote 0
                          • GaieusG Offline
                            Gaieus
                            last edited by

                            That's what I also suspected but when I set it to something else than my current aspect ratio, I did not get those bars. Should I have?

                            Gai...

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

                              Also, you now have those bars set in each scene. So everytime you click on to a different scene, it re-enables the bars. You will need to go through and remove the bars from eaxh scene then update the scene one by one. Unless someone has a snippet to do that automatically...

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

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

                                Thanks for your support,

                                at the moment the only thing that seems to be working is to set the thea exporter ratio scene at 800x600 (the ratio I nedd in my animation) and update each scene.

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

                                  Try this snippet. paste it into the ruby console and hit enter (please save your model first, I don't want to be blamed if this goes wrong (which it should not, its a safe little snippet, but you never know!))

                                  Sketchup.active_model.pages.to_a.each { |e| e.camera.aspect_ratio = 0.0}

                                  That should clean up all pages automatically.

                                  Chris

                                  EDIT: By the way, that should all be input as a single line of code.

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

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

                                    Thank you Chris. I'll try it πŸ˜„

                                    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