• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

[Plugin] Universal Importer - v1.2.6 - 30 July 2024

Scheduled Pinned Locked Moved Plugins
441 Posts 106 Posters 432.1k Views
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.
  • P Offline
    paladinjnr
    last edited by 7 Jan 2020, 16:05

    Will do

    Hi Here is a link to the model as requested.

    Filehorst wurde abgeschaltet! Filehorst has been shut down!

    favicon

    (filehorst.de)

    Many Thanks Rae

    Thank You for your help, I have spent most of today importing different models , some worked some didn't , so I am gong to give it a break for a couple of weeks then pick it up again .
    Once again many thanks for your help

    Keep up the good work

    Rae

    1 Reply Last reply Reply Quote 0
    • S Online
      samuel_t
      last edited by 7 Jan 2020, 16:50

      @sketch3d.de said:

      based on the MeshLab engine should maybe be mentioned.

      It was already mentioned on GitHub page . And now, it's also mentioned on SketchUcation page .

      1 Reply Last reply Reply Quote 0
      • P Offline
        pilou
        last edited by 7 Jan 2020, 18:44

        Frenchy Pilou
        Is beautiful that please without concept!
        My Little site :)

        1 Reply Last reply Reply Quote 0
        • O Offline
          Oxer
          last edited by 8 Jan 2020, 03:51

          Thanks for the macos version!! πŸ‘

          SU2017 & macOS 10.13.6

          I found some problems with the importing:

          1. If you import a file that contains a space in filename (e.g. Pinas Prueba.obj), it appears a popup message window in Sketchup: "Import Error". I looked in the Console (I opened SketchUp via Terminal) and this is the error message:

          assimp export; wrote output file; /Users/Oxer/.UniversalImporter/tmp/Pinas Prueba.obj.dae
          Warning; uri contains white space, dom will convert them to %20 in output files!
            uri=#Pinas Prueba.obj.obj
          Error; daeStandardURIResolver;;resolveElement() - failed to resolve file;//localhost/Users/Oxer/.UniversalImporter/tmp/Pinas Prueba.obj.dae#Pinas Prueba.obj.obj
          

          2. With a file without spaces in filename Universal Importer work fine but nothing is imported, it appears a popup window in Sketchup with this text --> 'An empty component cannot be inserted'
          I probed with different file format: obj, dae, fbx, blend and the same in all.

          Generated files.jpg

          Warning message.jpg

          Perhaps it is a SketchUp error or perhaps is a problem with the scale, I don't know it, but I tried changing the 405 line in converter.rb:

          dae_export.sub!('meter="1"', 'meter="0.01"')
          
           to   
          
           dae_export.sub!('meter="1"', 'meter="1"')
          

          And the Universal Importer inserted a flat component with two lines, see the image:

          Inserted component with meter=1.jpg

          3. When you select a file (e.g. in the Finder) to import, the plugin copy all Finder files to the temp folder, why? and are this files delete automatically or is it necessary delete manually?

          4. A minor detail, the texts 'Select a 3D Model' '3D Models |.3d;.3ds;.3mf;.ac;.ac3d;.acc;...' 'Select a Texture Atlas (Optional)' 'Images |.jpg;.png;*.bmp;||' do not appear in the importing windows.

          Again, thanks for your efforts !!

          "The result is the end what is important is the process" by Oxer
          [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

          1 Reply Last reply Reply Quote 0
          • S Online
            samuel_t
            last edited by 8 Jan 2020, 12:41

            @oxer said:

            Thanks for the macos version!! πŸ‘

            Thanks for detailed report! πŸ˜‰

            @oxer said:

            1. If you import a file that contains a space in filename (e.g. Pinas Prueba.obj), it appears a popup message window in Sketchup: "Import Error". [...]

            OK. I'm gonna fix that.

            @oxer said:

            2. With a file without spaces in filename Universal Importer work fine but nothing is imported, it appears a popup window in Sketchup with this text --> 'An empty component cannot be inserted' [...]

            Did you tried to import a completely different model? Could you please upload original "Pinas Prueba.obj + mtl + jpg" to a file hoster or here. This way I could debug it.

            @oxer said:

            3. When you select a file (e.g. in the Finder) to import, the plugin copy all Finder files to the temp folder, why? and are this files delete automatically or is it necessary delete manually?

            Model and associated files are copied to a temp folder to avoid invalid characters in path.
            These temp files are automatically deleted at each import.

            @oxer said:

            4. A minor detail, the texts 'Select a 3D Model' '3D Models |.3d;.3ds;.3mf;.ac;.ac3d;.acc;...' 'Select a Texture Atlas (Optional)' 'Images |.jpg;.png;*.bmp;||' do not appear in the importing windows.

            Strange. Maybe it's a SketchUp API bug on MacOS... πŸ˜•

            1 Reply Last reply Reply Quote 0
            • O Offline
              Oxer
              last edited by 8 Jan 2020, 13:55

              Hi, I tried to import the same Pinas.obj file with QuadTools plugin and the importing works fine.

              Here the files:

              Pinas.obj, Pinas.mtl and texture

              "The result is the end what is important is the process" by Oxer
              [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

              1 Reply Last reply Reply Quote 0
              • O Offline
                Oxer
                last edited by 8 Jan 2020, 14:27

                It would be interest if other mac users test the file with other macos & SketchUp versions.

                "The result is the end what is important is the process" by Oxer
                [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

                1 Reply Last reply Reply Quote 0
                • S Online
                  samuel_t
                  last edited by 8 Jan 2020, 18:02

                  @oxer said:

                  [...]
                  EDIT: I see that you have change the converter.rb to V2, I'll test this new version of the file.

                  Super. Thanks for your help.

                  1 Reply Last reply Reply Quote 0
                  • O Offline
                    Oxer
                    last edited by 8 Jan 2020, 18:02

                    I overwrited the converter.rb file and this is the result importing Pines.obj file:

                    Two lines crossed in a vertical plane
                    Pines model imported.jpg

                    I made some testing with another models and formats, I used Blender to export the models to different formats.

                    Original models created with Blender 2.82.
                    Original Models.jpg

                    THE RESULTS

                    1. FBX format

                    The importer works but there are some issues:
                    A) The scale is multiplied by 100.
                    B) It doesn't import the UVMap.
                    C) With complex models the edges are displaced a little (see the image).

                    FBX format.jpg

                    2. OTHER FORMATS

                    A) Cube 1 x 1 m, OBJ, PLY and DXF formats.
                    Other fomats 01.jpg

                    B) Sphere 1 x 1 m, OBJ, PLY and DXF formats.
                    Other formats 02.jpg
                    DXF Sphere.jpg

                    EDIT: I see that you have changed the converter.rb to V2, I'll test this new version of the file.

                    "The result is the end what is important is the process" by Oxer
                    [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

                    1 Reply Last reply Reply Quote 0
                    • O Offline
                      Oxer
                      last edited by 8 Jan 2020, 18:17

                      Thanks to you for your work!! πŸ‘

                      converter.rb V2 tested and it works fine now, fantastic!! πŸŽ‰

                      Some issues only, the Z axis is flipped and the scale isn't correct, for the moment I probed with FBX format only.

                      FBX with converter.rb v2.jpg

                      "The result is the end what is important is the process" by Oxer
                      [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

                      1 Reply Last reply Reply Quote 0
                      • O Offline
                        Oxer
                        last edited by 8 Jan 2020, 18:23

                        OBJ FORMAT

                        The same issues as FBX format, scale (in this case is more small) an Z axis.

                        OBJ format V2.jpg

                        PLY FORMAT

                        The same issue with scale as OBJ format but the Z axis is correct. πŸ‘

                        PLY format V2.jpg

                        DXF FORMAT

                        The same issue with scale and axis as OBJ format , I think dxf doesn't support textures.

                        DXF format.jpg

                        "The result is the end what is important is the process" by Oxer
                        [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

                        1 Reply Last reply Reply Quote 0
                        • S Online
                          samuel_t
                          last edited by 8 Jan 2020, 19:56

                          @oxer said:

                          Hi, I tried to import the same Pinas.obj file with QuadTools plugin and the importing works fine.
                          Here the files:

                          Hello Oxer,

                          I can import "Pinas.obj" on Windows. So it's maybe related to macOS or SU.

                          Could you please overwrite your installed "converter.rb" with attached one?

                          converter.rb

                          Then restart SketchUp. Then try to re-import "Pinas.obj". Thanks for help. πŸ˜‰

                          1 Reply Last reply Reply Quote 0
                          • S Online
                            samuel_t
                            last edited by 8 Jan 2020, 19:56

                            @Mac Users

                            I've fixed again plugin code. I hope this one works on macOS! πŸ˜›
                            Please overwrite your installed "converter.rb" with attached one.

                            converter.rb

                            Then restart SketchUp. Then import a model. Tell me if it works.

                            Thank you. πŸ˜‰

                            1 Reply Last reply Reply Quote 0
                            • S Online
                              samuel_t
                              last edited by 8 Jan 2020, 20:09

                              1.0.3 version fixes critical bugs on macOS and Windows. macOS is now fully supported.

                              Download latest Universal Importer plugin from SketchUcation PluginStore .

                              1 Reply Last reply Reply Quote 0
                              • S Online
                                samuel_t
                                last edited by 8 Jan 2020, 20:15

                                @oxer said:

                                Fantastic plugin but I work on mac, is there plan for macos support?

                                Problem is I don't have macOS computer. Maybe I could try code it on a virtual machine?
                                Since v1.0.3, plugin is compatible with macOS.

                                @oxer said:

                                Spanish Language File

                                Thanks for Spanish translation.

                                1 Reply Last reply Reply Quote 0
                                • S Online
                                  samuel_t
                                  last edited by 8 Jan 2020, 20:21

                                  1.0.2 version adds:

                                  • Preliminary macOS support,
                                  • Spanish translation.

                                  Download latest Universal Importer plugin from SketchUcation PluginStore .

                                  1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    JimPeter
                                    last edited by 9 Jan 2020, 04:32

                                    [img]1.0.3.png[/img]
                                    Error:Following command failed:

                                    1 Reply Last reply Reply Quote 0
                                    • J Offline
                                      JimPeter
                                      last edited by 9 Jan 2020, 07:06

                                      @samuel_t said:

                                      1.0.3 version fixes critical bugs on macOS and Windows. macOS is now fully supported.

                                      Download latest Universal Importer plugin from SketchUcation PluginStore .

                                      Error:Following command failed:


                                      1.0.3.png

                                      1 Reply Last reply Reply Quote 0
                                      • J Offline
                                        JimPeter
                                        last edited by 9 Jan 2020, 07:41

                                        Error:Following command failed:


                                        1.0.3.png

                                        1 Reply Last reply Reply Quote 0
                                        • TIGT Offline
                                          TIG Moderator
                                          last edited by 9 Jan 2020, 12:41

                                          There seems to be something seriously wrong with the functioning of this version of the Extension.

                                          It makes a folder 'Universal Importer/tmp' inside the main C:/ProgramData/ hidden-folder - not sure why ?
                                          What's wrong with the user's Temp folder ?
                                          This location doesn't seem appropriate ??
                                          Permission muddles and other issues are almost inevitable !
                                          The importer then copies a seemingly random selection of files and subfolders into 'tmp' !
                                          It seems like these are from the same location as the file selected to import ?
                                          Currently about 17Gb !
                                          If I rename/delete 'tmp', then it's remade with a new random selection when the next import is started.
                                          As far as I can see it's copying, rather than moving files, which of course would be far worse !!
                                          There's no auto-cleanup on completion, and so the 'tmp' folder will grow with each run of the importer !
                                          Which is of course not ideal.

                                          Any thoughts on what's happening ??

                                          TIG

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

                                          Advertisement