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

    [Plugin] Import ALL from Folder

    Scheduled Pinned Locked Moved Plugins
    77 Posts 20 Posters 65.2k Views 20 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.
    • TIGT Offline
      TIG Moderator
      last edited by

      I just revisited this Plugins code.
      As it was, it still worked fine for me on multiple SKP imports, but I have made some adjustments because the SKP import could now be more 'streamlined' > SUp v8...

      Here's the updated v1.4 RBZ in the PluginStore http://sketchucation.com/pluginstore?pln=import_from_folder

      Please try it and feedback.

      PS: Rich - you can email me the 126 SKPs in a ZIP if you like ?

      TIG

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

        bug splat on mac...
        there are some weird names, but I import them as a test folder for my icon maker plugin, and they were importing then failing last night...
        john
        full folder content

        .DS_Store
        .png
        ¨„¶®™_·_Ë‚„‡¢†´Æ¨.skp
        ¨„¶®™_·_™†°•´•¨.skp
        ¨„¶®™_·_™†≠®·‚‡Æ©.skp
        ¨„¶®™_·_™‡†·™Æ©.skp
        ¨„¶®™_·Æ_·‚•‚Á®™Æ¨_£•©£•‡†.skp
        ¨„¶®™_®_™‡Î·†.skp
        ¨„¶®™_≠†_´•·‚≠®Ê•.skp
        ¨„¶®™_߆_·‚ƴƨ.skp
        ¨„¶®™®_·_°ÆÁ™†¨®.skp
        ¨„¶®™®_¢_™Æ´Æ§Ê•.skp
        £Æ´Î©_¨„¶®™.skp
        file_names from folder.scpt
        filenames.txt
        Ø®‡Æ‚•Â≠®™.skp
        ØÆ¶†‡≠Ε_·Æ_·‚¢Æ´Æ¨_1.skp
        ØÆ¶†‡≠Ε_·Æ_·‚¢Æ´Æ¨_2.skp
        ØÆ¶†‡≠Ε_·Æ_·‚¢Æ´Æ¨_3.png
        ØÆ¶†‡≠Ε_·Æ_·‚¢Æ´Æ¨_3.skp
        ØÆ¶†‡≠Ω_·_‚ÆØÆ‡Æ¨.skp
        ØÆ¶†‡≠Ω_·_Æ£≠•‚„Ë®‚•´•¨.skp
        ØÆ¶†‡≠Ω_≠†_Ë•·‚•.skp
        ØÆ¶†‡≠Ω_1.skp
        ØÆ¶†‡≠Ω_2.skp
        ØÆ¶†‡≠Ω_3.skp
        ØÆ¶†‡≠Ω_3~.skp
        ru_aviator.skp
        ru_blueSanta.skp
        ru_garbageCollect.skp
        ru_glassman.skp
        ru_jackHammer_male.skp
        ru_jackHammer.skp
        ru_leafBlower.skp
        ru_plumBob.skp
        ru_surveyor.skp
        ru_welder.skp
        ru_wheelBarrow.skp
        site_logo.png
        welder.png
        welder.skp
        

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

        1 Reply Last reply Reply Quote 0
        • TIGT Offline
          TIG Moderator
          last edited by

          They are weird SKP names !
          What happens with a simpler set of 'sensible' names ??
          Maybe I need to try and force the file path's encoding to UTF-8 if >=v2014 ?

          Are they all real SKPs ?
          Is their version <= SUp version you are using ?
          If it's > then you will get an 'empty-skp' message for each one...

          TIG

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by

            Here's v1.5, it forces the file names to UTF-8 in >v2014 to see if that addresses file-type errors
            http://sketchucation.com/pluginstore?pln=import_from_folder

            TIG

            1 Reply Last reply Reply Quote 0
            • Rich O BrienR Offline
              Rich O Brien Moderator
              last edited by

              I'll email files later.

              But no weird characters except _

              Download the free D'oh Book for SketchUp 📖

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

                @tig

                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...

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

                1 Reply Last reply Reply Quote 0
                • TIGT Offline
                  TIG Moderator
                  last edited by

                  So this begs the question, "why does it work OK for me ?"
                  😒

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • Rich O BrienR Offline
                    Rich O Brien Moderator
                    last edited by

                    You on Win8.1?

                    Download the free D'oh Book for SketchUp 📖

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

                      @tig said:

                      So this begs the question, "why does it work OK for me ?"
                      :roll:

                      have you run it on your mac?

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

                      1 Reply Last reply Reply Quote 0
                      • TIGT Offline
                        TIG Moderator
                        last edited by

                        Win7 64bit, v2015 64bit... also works in v8 32bit etc...

                        TIG

                        1 Reply Last reply Reply Quote 0
                        • Rich O BrienR Offline
                          Rich O Brien Moderator
                          last edited by

                          I won't get near laptop until 9pm.

                          But I will test then.

                          Download the free D'oh Book for SketchUp 📖

                          1 Reply Last reply Reply Quote 0
                          • TIGT Offline
                            TIG Moderator
                            last edited by

                            No rush... I'm asleep right now 😉

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • Rich O BrienR Offline
                              Rich O Brien Moderator
                              last edited by

                              I won't get near laptop until 9pm.

                              But I will test then.

                              Download the free D'oh Book for SketchUp 📖

                              1 Reply Last reply Reply Quote 0
                              • Y Offline
                                YoungOSG
                                last edited by

                                @tig said:

                                @Young

                                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#p554042

                                This 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 a model.start_operation(...) block around each iterate step.
                                Remember to use the model.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 ?

                                1 Reply Last reply Reply Quote 0
                                • TIGT Offline
                                  TIG Moderator
                                  last edited by

                                  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]...

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • M Offline
                                    McSquizzy
                                    last edited by

                                    This tool is exactly what I am looking for but having problems with it. I am having some issues with collada (.dae) files. The tool seems to operate properly until it completes. Once it has stepped through all of the collada files, it says it has completed but does not render any of the data. I am left with an empty SketchUp model. I am using it with v2014. I have tried this plugin with .skp files and worked perfectly.

                                    1 Reply Last reply Reply Quote 0
                                    • A Offline
                                      appgeo
                                      last edited by

                                      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

                                      1 Reply Last reply Reply Quote 0
                                      • H Offline
                                        harnstein
                                        last edited by

                                        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

                                        still sketchin'

                                        1 Reply Last reply Reply Quote 0
                                        • TIGT Offline
                                          TIG Moderator
                                          last edited by

                                          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...

                                          TIG

                                          1 Reply Last reply Reply Quote 0
                                          • H Offline
                                            harnstein
                                            last edited by

                                            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.. 😉

                                            still sketchin'

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 3 / 4
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement