Batch Image Output

General discussion related to SketchUp Pro and Make

Batch Image Output

Postby measuredmove » Thu Jan 11, 2018 9:28 pm

Is there a way to do a batch output of an image file- one per file from several hundred in a directory? It would need to work in SU8. I did look on the older plugin sites but couldn’t see anything that might do the job. It’s required to create a slideshow.
Thanks
0

measuredmove 
 

Re: Batch Image Output

Postby juju » Fri Jan 12, 2018 7:41 am

Maybe I'm a little slow today, please clarify:

A. do you need to do a batch output from SketchUp to a directory
B. do you need to do a batch input to SketchUp (single file containing all) from a directory
C. do you need to do a batch input to SketchUp (single file for each image) from a directory
0
Save the Earth, it's the only planet with chocolate.
User avatar
juju 
Premium Member
Premium Member
 

Re: Batch Image Output

Postby measuredmove » Fri Jan 12, 2018 2:41 pm

D. I need to export a single image from several hundred skp files One image file export per each file but as a batch process.
So ...to open each skp and export out a 2d image, probably jpg, close the file and go on to the next one.
I could to it manually but life is short
Cheers
0
SU8/LightUp/Gimp/SimLab Composer/Kerkythea

measuredmove 
 

Re: Batch Image Output

Postby juju » Fri Jan 12, 2018 3:04 pm

The following comes up (one of a number of hits) from a search of the SketchUcation Pluginstore, search term "images":

Image2Model

You're welcome.
0
Save the Earth, it's the only planet with chocolate.
User avatar
juju 
Premium Member
Premium Member
 

Re: Batch Image Output

Postby measuredmove » Fri Jan 12, 2018 3:37 pm

Thanks, juju
Looks like it would be the opposite-creates a component from an image file.
Thanks for your help though. I hadn't looked on the current plugins list just the older sites that are compatible with SU8. I shall look thru the later ones.
0
SU8/LightUp/Gimp/SimLab Composer/Kerkythea

measuredmove 
 

Re: Batch Image Output

Postby driven » Fri Jan 12, 2018 3:41 pm

since v6, SU has had a method #Sketchup.save_thumbnail("skp_filename", "image_filename")...

with it there is no need to open each skp file, it extracts the one that's already in the file...

so look for a batch extension that uses that, or write your own...

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

driven 
PluginStore Author
PluginStore Author
 

Re: Batch Image Output

Postby measuredmove » Fri Jan 12, 2018 4:04 pm

Thanks, John
The preview of each skp file that is shown in Windows Explorer is exactly what I need as individual images.
Is there a way to save them as stand alone image files?
Sorry I'm not very tech-savvy. I see what I want to do just don't know how to accomplish it.
Even if it wasn't a batch process just cutting out the time required to open each skp file and output the 2d image would be huge.
This may be more of a Windows solution than a Sketchup solution, I think.
0
SU8/LightUp/Gimp/SimLab Composer/Kerkythea

measuredmove 
 

Re: Batch Image Output

Postby measuredmove » Fri Jan 12, 2018 4:47 pm

0
SU8/LightUp/Gimp/SimLab Composer/Kerkythea

measuredmove 
 

Re: Batch Image Output

Postby driven » Fri Jan 12, 2018 4:51 pm

I no longer have v8, but this code may work if run from Ruby Console...

save_thumbnai.rb


find where it gets downloaded too...

open Window >> Ruby Console >> add the following line with that path...

Code: Select all
load "<path to the download>"


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

driven 
PluginStore Author
PluginStore Author
 

Re: Batch Image Output

Postby measuredmove » Fri Jan 12, 2018 5:18 pm

Thanks,John
I'll try to figure it out.
There seem to be a number of Window solutions also-thanks for opening up that possibility also as a method.
0
SU8/LightUp/Gimp/SimLab Composer/Kerkythea

measuredmove 
 

Re: Batch Image Output

Postby juju » Fri Jan 12, 2018 9:09 pm

Take a look at XnView, it used to be able to do that with SKP files a while back when I used it (I have MooTools 3D Viewer & Polygon Cruncher now), it probably still does...

XnView is an efficient multimedia viewer, browser and converter.
Really simple to use! Support of more than 500 image formats.
No Adware, No Spyware.
0
Save the Earth, it's the only planet with chocolate.
User avatar
juju 
Premium Member
Premium Member
 

Re: Batch Image Output

Postby measuredmove » Fri Jan 12, 2018 9:28 pm

Nice..looks promising.
I have the Mootools set also but couldn't figure out how to create a Catalog or a slideshow that could be opened by someone without a 3DS viewer or Mootools itself.
Are you able to save the image to jpg or png from 3D Viewer?
0
SU8/LightUp/Gimp/SimLab Composer/Kerkythea

measuredmove 
 

Re: Batch Image Output

Postby measuredmove » Fri Jan 12, 2018 10:30 pm

Sorry I should have looked on their website (Mootools) first. If I don't immediately see something in the drop down menus I figure it can't be done.
Thanks for pointing me in this direction....
0
SU8/LightUp/Gimp/SimLab Composer/Kerkythea

measuredmove 
 

Re: Batch Image Output

Postby measuredmove » Sat Jan 13, 2018 7:19 pm

An update for anyone wanting to create a ’Catalogue’ of skp thumbnails using Mootools 3d Browser.
It may not be the best process but it works just great for my requirements.
1. Open directory of thumbnails in Mootools
2. Print to OneNote
3. Save resulting Print file as a PDF
Thanks to JuJu for reminding me that I have Mootools. :enlight:
0
SU8/LightUp/Gimp/SimLab Composer/Kerkythea

measuredmove 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to SketchUp Pro & Make Discussions

Who is online

Users browsing this forum: No registered users and 2 guests

Visit our sponsors: