I am looking for a way to convert several skp, kmz or dae files at once into 3ds or fbx format. In sketchup pro you can do export as…3ds or fbx but that would take too long to open each file and export it. Is there a command line in sketchup, or a script that could be used to perhaps automate this process?
Thanks
I am looking for a way to convert several skp, kmz or dae files
Share
you need to invoke sketchup from the command-line specifying a script
to run immediately
sketchup.exe -RubyStartup d:\scripts\runexport.rbin your ruby script (
runexport.rb) you canload your model. See http://code.google.com/apis/sketchup/docs/ourdoc/model.html#import
export your model. See http://code.google.com/apis/sketchup/docs/ourdoc/model.html#export
and finally, shutdown sketchup. See http://forums.sketchucation.com/viewtopic.php?f=180&t=29162
For recursively walking the directory, try this ruby code (from wikipedia)
Pattern matching using regular expressions