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

    Film and Stage plugin - need help to fix script

    Scheduled Pinned Locked Moved Developers' Forum
    29 Posts 9 Posters 2.1k Views 9 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

      http://forums.sketchucation.com/viewtopic.php?f=180&t=15491#p119728

      I think the viewport features you need should work. Might be some issues with the Webdialogs though. Let me know if you experience problems.

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

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

        These grey bars would be normal when only covering either the top/bottom or the sides as that would mark where your image is cropped from a plugin that affects the viewport. Now these randomly placed spots obviously destroy the view and of course, I have no clue what causes it.

        Rick Wilson wrote a plugin to "FixAspectRatio" back when (AFAIK) this Film and stage plugin was the only one that inserted these grey bars. You could try it and see if it fixes anything with this mess in your view.

        Gai...

        1 Reply Last reply Reply Quote 0
        • SwissmountainS Offline
          Swissmountain
          last edited by

          Thank yoy ThomThom and Gaius! I will try both suggestions they sound promising! I appreciate your swift replies ☀

          Cogito ergo dum-di-dum

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

            Mind you that my "idea" is not a guarantee - just a hope.
            😉

            Gai...

            1 Reply Last reply Reply Quote 0
            • SwissmountainS Offline
              Swissmountain
              last edited by

              @gaieus said:

              Rick Wilson wrote a plugin to "FixAspectRatio" back when (AFAIK) this Film and stage plugin was the only one that inserted these grey bars. You could try it and see if it fixes anything with this mess in your view.

              unfortunately this didn't work. I have been too busy to try the v-ray toys solution, will post an update when I get around to it.

              As a quick temporary fix I used Time Machine on my mac to re-couperate my old SKP7 from before I updated and use it to export jpgs.

              Thank you Gaieus

              Cogito ergo dum-di-dum

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

                I am having this same issue with the gray bars when using the Maxwell plugin. I have not been able to find a workaround. I can export views fine at any resolution until I go to the Maxwell plugin and set "show render area". So now I have no way to match my SU view to what Maxwell will render. And I am unable to export without the gray bars. HELP!!!

                1 Reply Last reply Reply Quote 0
                • SwissmountainS Offline
                  Swissmountain
                  last edited by

                  @thomthom said:

                  http://forums.sketchucation.com/viewtopic.php?f=180&t=15491#p119728

                  I think the viewport features you need should work. Might be some issues with the Webdialogs though. Let me know if you experience problems.

                  Hey Thomthom,

                  hope you read this... it's been a year since the last post of this thread.

                  As described in my last post to this thread I worked around the problem described in this post by working in an earlier version of skp7 and that was fine. Now I updated to skp8 and was hoping my problem would just go away... guess it persists. 😐

                  Your suggestion to use your vray toys seems like the best shot to fix this problem right now, however it didn't quite work a year ago and still does not produce a result. As you predicted, there seems to be an issue with the web dialogue, which I assume is supposed to output an image file?

                  I don't manage to output a file at all when I hit "export".

                  http://gallery.me.com/swissmountain/100115/Picture-207/web.jpg?ver=12913328360001

                  I export my images with a resolution of 2000x1080 pixels and notice the width is locked with the word "infinity" not sure this is part of the problem.

                  Am I overlooking something?

                  Tusen takk!

                  Fredi

                  Cogito ergo dum-di-dum

                  1 Reply Last reply Reply Quote 0
                  • honoluludesktopH Offline
                    honoluludesktop
                    last edited by

                    Just a random thought. Could it be related to your graphic driver, and the upgrade to v7?

                    1 Reply Last reply Reply Quote 0
                    • SwissmountainS Offline
                      Swissmountain
                      last edited by

                      Hey Honoluludesktop, how's the weather?

                      Thanks for your insight. However, I am pretty sure it is not a graphic card problem since I have the same issue on both my laptop and desktop.
                      I'm using an ATI Radeon HD 4870, which is not creating any trouble with any of my apps.

                      The Film and Stage plugin is quite old and has been fraught with little quirks and issues, since it is a ruby script written by an independent party for skp5.

                      It is however an amazing tool without which skp sort of becomes useless to me, I work in film.

                      The grey bars have always been a problem with this plugin... the old workaround was to create a "skp window" which matches the ratio well enough to not show any grey bars, then select "use view size" to save. This got rid of the grey bars efficiently up to the second "upgrade" of skp7 when it all of a sudden stopped working.

                      I am trying to find a tool or method which allows me to grab the "skp window" and output it at the precise ratio (1:1.85) so the grey bars disappear.

                      Aloha!

                      Fredi

                      Cogito ergo dum-di-dum

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

                        Hey Freddi, even in version 8, you should be able to turn those grey bars off, then resize your window, then export the image to get a correctly sized jpg without the grey bars.

                        Also, those grey bars are apparently a Mac only thing. So you could use the plugin on a PC without the same problems from what I've seen.

                        Also, Google is currently re-working this script. We're hopeful that they will get this all sorted out for us in the near future.

                        And you're in"LA" is that Los Angeles?, or Louisiana? or somewhere else?

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

                        1 Reply Last reply Reply Quote 0
                        • SwissmountainS Offline
                          Swissmountain
                          last edited by

                          Hey Chris,

                          You are right, I am a mac user... and I live in Los Angeles.

                          I have Parallels but am using such a mish-mosh of apps already I hesitate adding more steps to the process.

                          Resizing the window used to work just fine from versions 5 through to early 7.
                          Not anymore though, I tried everything, even taking precise snapshots using the ruby console.

                          I think I will keep working in 7 until this plugin is revised.

                          Thank you for your input!

                          Ciao,

                          Fredi

                          Cogito ergo dum-di-dum

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            driven
                            last edited by

                            @unknownuser said:

                            I am trying to find a tool or method which allows me to grab the "skp window" and output it at the precise ratio (1:1.85) so the grey bars disappear.

                            Fredi

                            hi Fredi,

                            I work in film and play around with SU, the original plugin was made by @Last, isn't encoded, is fully modifiable and doesn't have a specific 'camera view' export function.

                            Have a look at camera.rb in Smultron Editor or similar, there are a couple of to-do items that someone might complete and possibly add a field of view export (if Google doesn't)

                            if you use SnapNDrag's Window selection and then crop down to the FOV in Graphics Convertor you can get very actuate aspect ration jpeg's for free
                            with or without camera info

                            john

                            learn from the mistakes of others, you may not live long enough to make them all yourself...

                            1 Reply Last reply Reply Quote 0
                            • SwissmountainS Offline
                              Swissmountain
                              last edited by

                              Hi John, thanks for all the suggestions!

                              I do have the original camera.rb plugin from @last
                              but I don't know how to add ruby code which will
                              export a jpg of the FOV... rats!

                              The screenshot idea is valid, however the resulting
                              image is pixelated )jagged edges) due to the lack
                              of anti aliasing.

                              ...and png exports with transparent background have
                              advantages over solid pct and jpg files.

                              ...an image capture function of the camera.rb plugin
                              would definitely have to be able to output jpg, and png files!

                              Anyways... hopefully Google will figure it out... I am keeping
                              my fingers crossed. Until then I keep using skp7.

                              Cogito ergo dum-di-dum

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

                                At the last basecamp a couple of months ago, a few of us sat around and discussed this plugin at length. Google is working on it, and I've got a set of improvements I'd like to make to it once we see what they get us. I'm optimistic!

                                Also, if you could try this code on the Mac. This will export an image to your plugins folder (or maybe the base SketchUp folder, I'm not exactly sure where). Please do the following:

                                • Using the Film and stage plugin, make a camera and set up the aspect ratio to something where you have those grey bars showing on the screen.
                                • Copy and paste the following code into the Ruby Console in SketchUp, press enter to execture the code.
                                view=Sketchup.active_model.active_view;height=1080;width=(height*view.camera.aspect_ratio).to_i;keys={;filename=>"aspect_exporter.png",;width=>width,;height=>height,;antialias=>false,;compression=>0.9,;transparent=>true};view.write_image keys
                                

                                That code should all be a single line, no line breaks, pasted into the ruby console as a single line.

                                That should export an image to your plugins folder, or maybe base SketchUp installation folder. That image will be 1080pixels tall, and as wide as needed to match the camera aspect that is shown on the screen when the image is exported. BTW, it mgiht not work as expected if there are no gray bars on the screen.

                                If you could test the code and let me know if it exports an image to the correct aspect, with no weird grey bars like the Mac is prone to doing, that would be great. If it works, I can write up a more fully functioning image exporter that would help solve your probolems 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
                                • D Offline
                                  driven
                                  last edited by

                                  hi Chris,

                                  that doesn't work, unfortunately...

                                  one idea I've contemplated is using a semi-transparent watermark for the camera FOV, this example is a quick hash-up using knightgame frame with locked aspect ratio...

                                  you could have one for each camera or a combined set of marker lines

                                  just an idea

                                  john
                                  using standard export 2D

                                  learn from the mistakes of others, you may not live long enough to make them all yourself...

                                  1 Reply Last reply Reply Quote 0
                                  • mitcorbM Offline
                                    mitcorb
                                    last edited by

                                    @Chris:
                                    Interesting that you ask about location. "And you're in"LA" is that Los Angeles?, or Louisiana? or somewhere else?"
                                    Louisiana has a fairly active young film industry.

                                    I take the slow, deliberate approach in my aimless wandering.

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

                                      @John - That did not work....meaning nothing happened? Or it exported an image of the wrong aspect ratio? Or it still had lame grey bars all over the place? I'd like to tweak it and keep trying a few things on it if you could let me know what about it did not work, I could try something different.

                                      There is also an option to crop the image after it has been exported using a ruby. That could also be worth looking into if Google does not fix the problem on their end first.

                                      @mitcorb - Cool, I did not know what Louisiana has an up and coming film sector. The way things are now, with film being so accessible by so many people, I think we might start seeing more and more hotspots of film start cropping up - more like music. Maybe you start getting more local film styles, the way music styles are often associated to regions around the country.

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

                                      1 Reply Last reply Reply Quote 0
                                      • D Offline
                                        driven
                                        last edited by

                                        sorry Chris, I still get this

                                        on Mac/10.5.8/SU8 (this is without code)on Mac/10.5.8/SU8 (this is with code)on PC/XP/SU8 (standard export)

                                        learn from the mistakes of others, you may not live long enough to make them all yourself...

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

                                          Thanks for the details!

                                          ok, so with the code, it exports the correct aspect, but the lame grey bars are all over inside the image. I'll see if I can come up with a workaround - I have an idea.

                                          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

                                            Hmm, I've played around with it, and I have not found a way to get the image to export to the right aspect without those grey bars. I tried getting the aspect ratio of the camera, then turning off the aspect ratio so remove the bars, then export an image with the desired dimensions to match the desired aspect ratio. Then turn the aspect ratio back on - I think that would work, but the zoom is wrong somehow. I guess you could try thise cose and see if it works on the Mac differently than it does on the PC.

                                            view=Sketchup.active_model.active_view;ar = view.camera.aspect_ratio.to_f;h=1080;w=(h*ar).to_i;view.camera.aspect_ratio = 0.0;keys={;filename=>"aspect_exporter.png",;width=>w,;height=>h,;antialias=>false,;compression=>0.9,;transparent=>true};view.write_image keys;view.camera.aspect_ratio = ar
                                            
                                            
                                            

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

                                            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