[Plugin] Import ALL from Folder
-
I'll email files later.
But no weird characters except _
-
no joy, it's failing on even a simple 2 skp, good filenames folder...
the other folder names are deliberately obnoxious to represent a 'user' folder, but the names all show in message bar as they are found...
-
So this begs the question, "why does it work OK for me ?"
-
You on Win8.1?
-
@tig said:
So this begs the question, "why does it work OK for me ?"
:roll:have you run it on your mac?
-
Win7 64bit, v2015 64bit... also works in v8 32bit etc...
-
I won't get near laptop until 9pm.
But I will test then.
-
No rush... I'm asleep right now
-
I won't get near laptop until 9pm.
But I will test then.
-
@tig said:
You code is overly complicated.
It also has some odd working practices...I am sure I have answered this same query elsewhere...
See the @yuyuwhy posts...
Is it you, but with a different user-name ??
http://sketchucation.com/forums/viewtopic.php?p=554042#p554042This thread explains how to setup an empty model SKP - the order of purging IS important - yours is wrong !
Do that BEFORE importing anything.It also suggests a sensible approach to the subsequent import, purge and export of each DAE in turn.
If you enclose those actions within a 'model.start_operation(...)
' block, BUT afterward each you 'model.abort_operation
' it [NOT the usual 'model.commit_operation
' it] then the imported data is simply forgotten, but the export is safe because the DAE file is now outside of the SKP's control... So there is no need to purge between each import/export at all.Recast your code thus...
Make the host SKP empty.
Process the list of DAE files in turn.
Use amodel.start_operation(...)
block around each iterate step.
Remember to use themodel.abort_operation
to undo the import etc, but leave the export intact.
You should end up with an empty SKP and all of the DAE files processed.Incidentally, your code only works in v2015 as the UI folder selector is new in that version's API.
Thanks!! I tried and it works!
And I want to import *.dae file with 2000 jpg.However Sketchup stop at 10%. It do not warn me anything.
could you help me ? -
Here's v1.6 http://sketchucation.com/pluginstore?pln=import_from_folder It is overhauled to ensure that SKP file imports do not BugSplat - which was an unpredictable issue with multiple SKP files, especially those including un-purged dross.
Rather than use 'import' for SKP files, it now uses 'load' on them, which adds their definitions to the model and depending on the user's choice, it either leaves them as unused Component-Browser definitions, or it also places an instance of each of them at [0,0,0]... -
-
I installed successfully to Sketchup Make Version 16, 32 bit on Windows PC running Windows 7.
Imported 4 small .DAE files and report says successful. However, nothing shows up on screen.
These files load fine when using the "File, Import" dialog in Sketchup, one at a time.
In "File, Import" dialog you have to place imported DAE file manually. Plug in does not ask. I always insert at origin of the model, so that would be fine. What am I doing wrong?
Thanks! Fred -
Hi @TIG,
I'm working on modeling a bunch of objects from photo reference. Therefore I used your plugin to mass import image files.
They come in nicely arranged next to each other - unfortunately they're all in random order..??
Their original filename is DSC_XXX, I tried batch renaming it to incremental numbers but that didnt solve it.
Any idea how to solve this?
Many thanks as usual Niko
-
If you want to import the file types in alphanumeric order, then sort the list as follows.
Edit the file [../Plugins/import_from_folder.rb] using a plain-text editor like Notepad++ [or TextWrangler on MAC].At line #124
list.each_with_index{|f, ix|...
change it to read
list.****sort.****each_with_index{|f, ix|...
then save and close.
Now restart SketchUp... -
Thanks a lot for your super quick support!
I'll try it when I get back to the office.
Another TIG tool that comes right on time..
-
Hi all, I have posted a companion plugin for Blender, which enables you to bulk export Collada files from Blender (which is very good at importing STL). Hope it helps someone.
https://github.com/johnnyshield/blender -
amazing tool - thanks
I have 50+ geolocated skp files
is it possible to place them according its own coordinates instead all in 0,0,0would donate this feature- thank you in advance!
-
Unfortunately SKP imports default to 0,0,0 - unless it's done manually - when you can choose a location.
However, if a SKP is geo-located, then importing it [e.g. manually] can force it to its geo-located point ??
I can't see how we need to automate that...
-
just recently it was possible to make this with the KMZ files
as soon as geo-located model or Geo-Location itself is in SketchUp scene - on the import KMZ files placing each in just exact location
Advertisement