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

    2D Export > Export All Scenes?

    Scheduled Pinned Locked Moved Developers' Forum
    20 Posts 10 Posters 12.0k Views 10 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.
    • JClementsJ Offline
      JClements
      last edited by

      Hi Didier:

      Thanks for doing the confirmation test.

      From my brief use of the script, it seems it is really a camera manipulation script. Have you considered adapting part of it and developing a interface (perhaps with controls similar to Jim Folz's Mover2.rb) such that the user can:
      __1. rotate (spin) the camera position around an object, model, or place on the screen using an angle increment input by the user?
      __2. Pan up or down?
      __3. Move orthographically along an axis or defined, straight path at specific intervals.

      This could really help in setting up Scenes with smooth transistions for demos, animations, etc.

      I realize other scripts or tools can do some of these things but I don't believe there is one that can do it all with a simple, intuitive interface.

      Regards, John

      John | Illustrator | Beaverton, Oregon

      1 Reply Last reply Reply Quote 0
      • juan974J Offline
        juan974
        last edited by

        what about : sceneExporter.rb ??
        http://www.smustard.com/script/SceneExporter

        juan974 (Réunion island)
        website : http://sketchucation.com/click.php?url=http://www.tarn.us

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

          Thanks for the link 😉

          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

            Is the naming important. You can export all scenes by exporting as animation choosing still images as output format and setting 1fps.

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

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

              Woo Hoo, Thom!

              Thank you for that reminder.

              I disable scene transitions and set the export size and file type as needed and let 'er rip. Works great.

              Etaoin Shrdlu

              %

              (THERE'S NO PLACE LIKE)

              G28 X0.0 Y0.0 Z0.0

              M30

              %

              1 Reply Last reply Reply Quote 0
              • J Offline
                jonb42
                last edited by

                I'm interested in a batch scene export script that will work in SU 2015 and will export to .dwg & .dxf

                Although I am no programmer seems this should be simple enough because the work would be done by SU - this would be just a batch operation.

                Here's why. I draw in SU then export to Autocad in which I make my final drawing sheets. (This is because I am required to turn in final .dwg drawings and Layout doesn't export gracefully... Text all over the place etc...) After trying a few different options my preferred method is to export a scene from SU to a 2D graphic in .dwg format. I use R12 setting because this forces what Autocad calls "index colors" which in turn means I can use the Autocad plotstyles to automatically assign lineweight and type and color based on the index color of a line - so it doesn't matter that SU won't export to proper layers using 2d export! I use a hidden line style with color by layer and I can get a meaningful looking 2d view of my model in Autocad without all the polymesh edges that you end up with using other methods.

                Anytime my model changes I need to go through and export each scene (lets say N,E,S,W elevation views) to dwg again. These dwgs are xref'd into my sheet so they automatically update in autocad when they change - thats important to cut down on work! Because my models are typically quite complex each export takes a bit of time, so the process of exporting x number of scenes becomes a bit of a chore every time something changes. A bit like if you use Layout how painful it would be to have to render (vector or hybrid!) every model reference individually when something changes - no, you want to start the process and do something else while waiting!

                So what I'd like to be able to do is:

                • start export plugin
                • choose a few scenes from the total scenes to export (helpful if last exported were auto checked)
                • choose export location (helpful if remembered last time)
                • choose overwrite (important because they WILL be overwriting files and want to suppress subsequent dialogs otherwise no point to batch operation:) )
                • click export
                • beep when finished!

                I downloaded ADO which looked like it might be what I'm looking for but it won't work with the version of SU I am using.

                Is this something that would be easy to script? I tried opening the ADO script but it looked compiled as opposed to some other .rb scripts that I opened where I could kind of follow the code using notepad++ or whatever... I might try to figure something out but it would be a big help if someone knowledgeable would give me a few pointers to start out with!

                thanks
                Jon

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

                  Here is a small export script by TIG:
                  http://forums.sketchup.com/t/convert-skp-to-obj-together/10539/5
                  It batch exports all RB files in a chosen folder, to the specified format (defaults to "obj" files.)

                  I'm not here much anymore.

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

                    @jonb42 said:

                    I downloaded ADO which looked like it might be what I'm looking for but it won't work with the version of SU I am using. ... I tried opening the ADO script but it looked compiled as opposed to some other .rb scripts ...

                    Do you mean Microsoft ActiveX Data Objects or the newer ADO.NET ?

                    If so,.. those are not packages that use the SketchUp Ruby API nor C SDK. They in fact, have nothing at all specific to do with SketchUp.

                    You get plugins from the SketchUcation PluginStore, the Trimble Extension Warehouse, or Smustard.com, etc.

                    You won't find them at Microsoft Download or Microsoft App Store, or any other OEM App Store.

                    I'm not here much anymore.

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

                      Just a W.A.G. but I'm thinking the poster meant Didier Bur's ADO script but I could be wrong.

                      It probably hasn't been updated yet to work with SU2014 and later.

                      Etaoin Shrdlu

                      %

                      (THERE'S NO PLACE LIKE)

                      G28 X0.0 Y0.0 Z0.0

                      M30

                      %

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

                        @dave r said:

                        Just a W.A.G. but I'm thinking the poster meant Didier Bur's ADO script but I could be wrong.

                        Ah OK. Yea that looks like it what he's speaking of.

                        I personally think the use of ADO was a bad choice. Just name it what it is. Automatic Drawing Output.

                        I'm not here much anymore.

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

                          @jonb42 said:

                          I downloaded ADO which looked like it might be what I'm looking for but it won't work with the version of SU I am using.

                          If you installed the ADO plugin by Didier Bur (from his website,) and you have SketchUp 2014 or higher,... you need to delete it's files from your "Plugins" folder.

                          Most especially the "Win32API.so" binary file as it is from old 1.8.x Ruby, and these newer SketchUp version are distributed with Ruby 2.0 and it's Standard Library, so this file is included, properly compiled with Ruby 2.0.

                          Also SketchUp 2015 comes in 32bit and 64bit editions, and each has the proper bitness of Ruby 2.0 and it's binary library files included.

                          Also there was a ActiveX Control "AutoItX3.DLL" that should also be removed. (ActiveX has been abandoned because it was found to be too much of a security risk. The .NET framework is used instead.)

                          Complete file list:
                          "ado.zip"
                          "ado.txt"
                          "ado_user-guide.pdf"
                          "ado.rb"
                          "AutoItX3.dll"
                          "Win32API.so"

                          Despite what "ado.txt" says,... the days of just dropping files into the "Plugins" folder are over.
                          Extensions should always go in their own sub-folder, name prefixed with the author namespace, like "Bur_ADO".


                          This plugin as well as others on his website, would be quarantined here, or never accepted by the Trimble Extension Warehouse. Because of above issues, and that the entire plugin functionality is defined in the toplevel ObjectSpace (and so propagates into everyone else's classes and modules,) and uses global variables for it's own unique use.

                          It needs an overhaul, and Didier knows it, and acknowledged it 4 years ago.

                          I'm not here much anymore.

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

                            I have a mac plugin that saves an image for every 'page' using every in model 'style'...
                            I'll have a look how hard it would be to reduce it to exporting dxf 2d rather than the style images...
                            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
                            • Dan RathbunD Offline
                              Dan Rathbun
                              last edited by

                              @driven said:

                              I have a mac plugin that saves an image for every 'page' using every in model 'style'...
                              I'll have a look how hard it would be to reduce it to exporting dxf 2d rather than the style images...
                              john

                              There's no issue with that, as it just iterates the Pages collection, and uses View#write_image (Chris Fullmer has a plugin like this on his Extension Warehouse store.)

                              The problem is that there's no Ruby exposed method to specifically call the 2D export dialog, nor any Ruby exposed attributes that will set the DWG / DXF export parameters that the dialog uses.

                              These are things like DWG file version, etc. (All the controls you see in the export options dialog, captioned: "DWG/DXF Hidden Line Options".)

                              The requester also wants to overwrite files without prompt, but this is a OS feature. There is no way to suppress the first query box, but the first one may have an ignore subsequent overwrites. (Unless someone knows of a environment var that can be set temporarily in the ENV hash to suppress overwrite query boxes?)

                              I'm not here much anymore.

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

                                @dan is right, the best I can do is write out to tif then convert that to dxf line work external of SU...
                                not what @jon is after...

                                2d dxf export is broken on SU for mac at the moment, so I may have a use for this anyway...

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

                                1 Reply Last reply Reply Quote 0
                                • J Offline
                                  jonb42
                                  last edited by

                                  Thanks for all the replies even though it sounds as though what I want isn't easily obtainable!

                                  Yes, I was talking about Didier's ADO plugin. I'll remove the files from my plugins folder as suggested though they didn't get loaded by SU 2015 at all that I could see.

                                  • Jon
                                  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