[Plugin] Universal Importer - v1.1.5 - 29 Jan. 2020

Re: [Plugin] Universal Importer - v1.0.2 - 07 Jan. 2020

Postby Oxer » Wed Jan 08, 2020 4:51 am

Thanks for the macos version!! :thumb:

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:

Code: Select all
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:

Code: Select all
dae_export.sub!('meter="1"', 'meter="0.01"')
to
Code: Select all
 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 !!
0
"The result is the end what is important is the process" by Oxer
http://www.oxervision.blogspot.com/
User avatar
Oxer 
 

Re: [Plugin] Universal Importer - v1.0.2 - 07 Jan. 2020

Postby samuel_t » Wed Jan 08, 2020 1:41 pm

Oxer wrote:Thanks for the macos version!! :thumb:


Thanks for detailed report! ;)

Oxer wrote: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 wrote: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 wrote: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 wrote: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... :?
0
User avatar
samuel_t 
 

Re: [Plugin] Universal Importer - v1.0.2 - 07 Jan. 2020

Postby Oxer » Wed Jan 08, 2020 2:55 pm

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

Here the files:

Pinas.zip
0
"The result is the end what is important is the process" by Oxer
http://www.oxervision.blogspot.com/
User avatar
Oxer 
 

Re: [Plugin] Universal Importer - v1.0.2 - 07 Jan. 2020

Postby Oxer » Wed Jan 08, 2020 3:27 pm

It would be interest if other mac users test the file with other macos & SketchUp versions.
1
"The result is the end what is important is the process" by Oxer
http://www.oxervision.blogspot.com/
User avatar
Oxer 
 

Re: [Plugin] Universal Importer - v1.0.2 - 07 Jan. 2020

Postby samuel_t » Wed Jan 08, 2020 3:34 pm

Oxer wrote: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. ;)
0
Last edited by samuel_t on Wed Jan 08, 2020 8:56 pm, edited 1 time in total.
User avatar
samuel_t 
 

Re: [Plugin] Universal Importer - v1.0.2 - 07 Jan. 2020

Postby samuel_t » Wed Jan 08, 2020 6:49 pm

@Mac Users

I've fixed again plugin code. I hope this one works on macOS! :P
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
Last edited by samuel_t on Wed Jan 08, 2020 8:56 pm, edited 1 time in total.
User avatar
samuel_t 
 

Re: [Plugin] Universal Importer - v1.0.2 - 07 Jan. 2020

Postby Oxer » Wed Jan 08, 2020 6:57 pm

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.
0
Last edited by Oxer on Wed Jan 08, 2020 7:02 pm, edited 1 time in total.
"The result is the end what is important is the process" by Oxer
http://www.oxervision.blogspot.com/
User avatar
Oxer 
 

Re: [Plugin] Universal Importer - v1.0.2 - 07 Jan. 2020

Postby samuel_t » Wed Jan 08, 2020 7:02 pm

Oxer wrote: [...]
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
User avatar
samuel_t 
 

Re: [Plugin] Universal Importer - v1.0.2 - 07 Jan. 2020

Postby Oxer » Wed Jan 08, 2020 7:17 pm

Thanks to you for your work!! :thumb:

converter.rb V2 tested and it works fine now, fantastic!! :bounce:

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
3
"The result is the end what is important is the process" by Oxer
http://www.oxervision.blogspot.com/
User avatar
Oxer 
 

Re: [Plugin] Universal Importer - v1.0.2 - 07 Jan. 2020

Postby Oxer » Wed Jan 08, 2020 7:23 pm

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

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
0
"The result is the end what is important is the process" by Oxer
http://www.oxervision.blogspot.com/
User avatar
Oxer 
 

Re: [Plugin] Universal Importer - v1.0.3 - 08 Jan. 2020

Postby samuel_t » Wed Jan 08, 2020 9:09 pm

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

Download latest Universal Importer plugin from SketchUcation PluginStore.
6
User avatar
samuel_t 
 

Re: [Plugin] Universal Importer - v1.0.3 - 08 Jan. 2020

Postby JimPeter » Thu Jan 09, 2020 5:32 am

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

JimPeter 
 

Re: [Plugin] Universal Importer - v1.0.3 - 08 Jan. 2020

Postby JimPeter » Thu Jan 09, 2020 8:06 am

samuel_t wrote: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:
0

JimPeter 
 

Re: [Plugin] Universal Importer - v1.0.3 - 08 Jan. 2020

Postby JimPeter » Thu Jan 09, 2020 8:41 am

Error:Following command failed:
0

JimPeter 
 

Re: [Plugin] Universal Importer - v1.0.3 - 08 Jan. 2020

Postby TIG » Thu Jan 09, 2020 1:41 pm

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 ??
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Universal Importer - v1.0.3 - 08 Jan. 2020

Postby Dave R » Thu Jan 09, 2020 2:00 pm

It's a great idea for an extension but so far I haven't been able to get any file type imported into SU2019 with it. Like TIG found, there's a huge TMP folder created in Program Data full of all sorts of files including some SketchUp files that aren't mine and which I've never seen before. I suspect the TMP file is full of stuff from the author's testing. For now I've removed it all and will wait to see if it gets fixed. It would be very useful if it worked.
0
Etaoin Shrdlu


%

(THERE'S NO PLACE LIKE)

G28 X0.0 Y0.0 Z0.0

M30

%
User avatar
Dave R 
Global Moderator
 

Re: [Plugin] Universal Importer - v1.0.3 - 08 Jan. 2020

Postby Oxer » Thu Jan 09, 2020 2:08 pm

It happens the same on mac, the extension creates a temporal folder inside the user folder:

/Users/Username/.UniversalImporter/tmp

I told it to samuel_t and he answered me this:

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


On mac the default temp folder is located here:

/private/var/folders/l9/c_qtfqf17257pb9ppdy9tw5m0000gn/T/
0
"The result is the end what is important is the process" by Oxer
http://www.oxervision.blogspot.com/
User avatar
Oxer 
 

Re: [Plugin] Universal Importer - v1.0.3 - 08 Jan. 2020

Postby TIG » Thu Jan 09, 2020 2:31 pm

One thing I see that seems adrift is the the user is prompted to choose an optional 'Texture Atlas' - but I think it's asked with a UI.openpanel dialog not a UI.select_directory dialog
So the desired folder is never passed to the code properly as the selected item is a file, not a folder, and also if the user cancels that step, then somehow the method still runs and then random files & folders get copied over into into 'tmp'...
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Universal Importer - v1.0.3 - 08 Jan. 2020

Postby Glenn at home » Thu Jan 09, 2020 2:45 pm

Huh, so far working as advertised for me. I've only tried a few of the formats so far but they mostly worked for me. Here is a .gltf file I exported from Simlab and used this plugin to bring it into SU. It took a few minutes, like 3 but it came in with good results.

1
SketchUp Pro 2019/2020
Dell Precision 3630
Intel i7-8700
32 GB Ram
512 M.2 PCIe SSD
Nvidia RTX 2080

Glenn at home 
 

Re: [Plugin] Universal Importer - v1.0.3 - 08 Jan. 2020

Postby samuel_t » Thu Jan 09, 2020 5:53 pm

JimPeter wrote: [...]
Error:Following command failed:
[...]


Could you please upload your model to a file hoster or here? This way I could debug it.
0
User avatar
samuel_t 
 

Re: [Plugin] Universal Importer - v1.0.3 - 08 Jan. 2020

Postby samuel_t » Thu Jan 09, 2020 6:27 pm

TIG wrote: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 ?


User's temp folder can contain special chars which are not supported by program used by this plugin.

TIG wrote:Permission muddles and other issues are almost inevitable !


Famous plugins like Artisan and Skatter are using C:\ProgramData. This isn't a problem.

TIG wrote: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 !


Textures can be associated to model. So I've no choice but to copy whole folder.
Since 1.1.1 version of plugin, only necessary files are copied to temporary folder.

TIG wrote:There's no auto-cleanup on completion, and so the 'tmp' folder will grow with each run of the importer !


No. Plugin temporary folder is recycled on each new import. There's no risk to saturate disk.
1
Last edited by samuel_t on Tue Jan 14, 2020 10:12 pm, edited 2 times in total.
User avatar
samuel_t 
 

Re: [Plugin] Universal Importer - v1.0.4 - 09 Jan. 2020

Postby samuel_t » Thu Jan 09, 2020 10:27 pm

1.0.4 version:

- Fixes scaling issues for many formats.
- Fixes "black screen" bug on Windows.
- Drops temp folder on SketchUp close.

Download latest Universal Importer plugin from SketchUcation PluginStore.
2
User avatar
samuel_t 
 

Re: [Plugin] Universal Importer - v1.0.4 - 09 Jan. 2020

Postby ken » Thu Jan 09, 2020 11:01 pm

Well at least with version 4 I am getting an error message, attached below, for a stl and stp file
0
Fight like your the third monkey on Noah's Ark gangway.
User avatar
ken 
Premium Member
Premium Member
 

Re: [Plugin] Universal Importer - v1.0.4 - 09 Jan. 2020

Postby samuel_t » Thu Jan 09, 2020 11:10 pm

ken wrote:Well at least with version 4 I am getting an error message, attached below, for a stl and stp file


Could you please upload your model (textures included) to a file hoster or here? So I could debug it.
0
User avatar
samuel_t 
 

Re: [Plugin] Universal Importer - v1.0.4 - 09 Jan. 2020

Postby ken » Fri Jan 10, 2020 1:46 am

Will the smallest I can get the file is 5442 KB.

Attached is an image of the file another converter. This is a downed oil platform in the Gulf of Mexico.

If you can send me an email address, I can use google mail to send the file.
0
Fight like your the third monkey on Noah's Ark gangway.
User avatar
ken 
Premium Member
Premium Member
 

Re: [Plugin] Universal Importer - v1.0.4 - 09 Jan. 2020

Postby samuel_t » Fri Jan 10, 2020 10:18 am

ken wrote:Will the smallest I can get the file is 5442 KB.

Attached is an image of the file another converter. This is a downed oil platform in the Gulf of Mexico.

If you can send me an email address, I can use google mail to send the file.


OK. I've sent you my email address in private message.
0
User avatar
samuel_t 
 

Re: [Plugin] Universal Importer - v1.0.5 - 10 Jan. 2020

Postby samuel_t » Fri Jan 10, 2020 1:38 pm

1.0.5 version:

- Enhances bug reports.
- Fixes "big copy" issue.

Download latest Universal Importer plugin from SketchUcation PluginStore.
3
User avatar
samuel_t 
 

Re: [Plugin] Universal Importer - v1.0.6 - 10 Jan. 2020

Postby samuel_t » Fri Jan 10, 2020 5:12 pm

1.0.6 version:

- Fixes polygon reduction on models without textures.
- Reduces plugin package size. (From 49MB to 41MB.)

Download latest Universal Importer plugin from SketchUcation PluginStore.
3
User avatar
samuel_t 
 

Re: [Plugin] Universal Importer - v1.0.6 - 10 Jan. 2020

Postby Einstein » Fri Jan 10, 2020 7:44 pm

Hi!

I downloaded the latest update but I'm still getting the same bug with every file format. I cannot import any file to SketchUp :(

By the way, I think it would be cool to also have polygon reduction as standalone tool for meshes that already exist in SketchUp. Because we haven't had a decent free polyreducer in SketchUp so far. It's just a suggestion.

Regards,
Michał
0

Einstein 
 

Re: [Plugin] Universal Importer - v1.0.6 - 10 Jan. 2020

Postby Ahmed0007 » Fri Jan 10, 2020 8:44 pm

i import this model with v1.0.1 without any problem but v1.0.6 give me this error why?
please help.
0

Ahmed0007 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 

PreviousNext


 

Return to Plugins

Who is online

Users browsing this forum: Jackemw and 10 guests

Visit our sponsors: