2D Export > Export All Scenes?
-
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
-
what about : sceneExporter.rb ??
http://www.smustard.com/script/SceneExporter -
Thanks for the link
Chris
-
Is the naming important. You can export all scenes by exporting as animation choosing still images as output format and setting 1fps.
-
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.
-
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 -
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.) -
@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.
-
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.
-
-
@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 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 -
@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...
johnThere's no issue with that, as it just iterates the
Pages
collection, and usesView#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?) -
-
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
Advertisement