Author Topic: Cant import smart materials from substance share  (Read 6113 times)

I cant seem to import most of the smart materials into paianter that I get from substance share.   It shows an error "An error occurred opening this resource. It cannot be imported", and then doesnt import.   
One such material is this:  https://share.substance3d.com/libraries/3966

I'm using Painter 2019.1.3

How do you import the resource ? What are your import settings ?
Don't forget your log file. It can be exported from the Help menu of the software.
-----------
Froyok aka Fabrice Piquet, Technical Artist and Product Designer at Allegorithmic.

I've tried importing by drag and drop from file explorer, using file-> import resources, and putting the file manually in the shelf folder.   I dont see any options for changing any actual settings for import... This is the import dialogue:
https://imgur.com/a/eVNexK9

Could you attach here the resource you downloaded ?
Don't forget your log file. It can be exported from the Help menu of the software.
-----------
Froyok aka Fabrice Piquet, Technical Artist and Product Designer at Allegorithmic.

Could you attach here the resource you downloaded ?

I cant seem to attach the file to my post.  Here's a dropbox link:  https://www.dropbox.com/s/v26aeqji7u85ft7/golden_moldy.zip?dl=0

It looks like the resource is identical to mine. So it doesn't seem corrupted.
Did you try moving the file in another folder/disk and importing it again ?
Is Substance Painter running in administrator mode ?
Don't forget your log file. It can be exported from the Help menu of the software.
-----------
Froyok aka Fabrice Piquet, Technical Artist and Product Designer at Allegorithmic.

Just tried running as administrator, could no longer drag/drop into the shelf from file explorer.

Tried copying and moving the file around, no change.  On my computer, the file has no date modified, not sure if thats impacting it?

Could you try again the administrator mode ? You can import a resource without using the drag and drop behavior. See : https://docs.substance3d.com/spdoc/impossible-to-drag-and-drop-files-into-the-shelf-140115970.html

Don't forget your log file. It can be exported from the Help menu of the software.
-----------
Froyok aka Fabrice Piquet, Technical Artist and Product Designer at Allegorithmic.

I've tried upgrading to
Substance Painter, version 2019.2.0
Build 3242 - 7c01df656b0c7602185fd275de419c6c6347bf49

Ran as administrator, import resource (no project open),  once the material is in the dialogue it shows "an error occurred opening this resource, it cannot be imported"  error again

Code: [Select]
[ ERR] <Resource Import> "F:/Substance/SubstanceShare/golden_moldy.spsm" cannot be imported as 'smartmaterial'.

Alright, thanks for trying. Could you give a try at one last test ?
Could you go into the installation folder of Substance Painter, copy one of the default Smart Material present into another folder and try to import it using the same procedure as you did ?

I would like to know if the issue is with any resources or only one you created (downloaded).
Don't forget your log file. It can be exported from the Help menu of the software.
-----------
Froyok aka Fabrice Piquet, Technical Artist and Product Designer at Allegorithmic.

Ok I copied Wood_Walnut to another folder and was able to import it fine.

There have been a few files from substance share that I've been able to import, but its probably about a 25% success rate.  In fact, I think I just imported one that failed last time I tried it. Wood_Medieval.   

Alright, we are progressing then !
I think the issue here is somehow related to security/access rights on the file. Files installed by our installers seems to be working fine with the application because the system created them. However file you downloaded don't likely because there were created under your account. At least that's what I suspect.

Can you try the following ?
- Right-click on one assets that doesn't import fine, choose "properties"
- Click on the "Security" tab
- Click on your user account in the "group or user names" list

Can you then tell me which permission are enabled for you account ?
Can you tell me the same for "Authenticated users" ?
Don't forget your log file. It can be exported from the Help menu of the software.
-----------
Froyok aka Fabrice Piquet, Technical Artist and Product Designer at Allegorithmic.

Authenticated Users have Modify, Read&execute, Read, write.
My account only had Read&execute, read.

I modified the settings for my account to have Modify and write as well, and it still didnt import

Alright, then do you have an Antivirus or Anti-spyware running in the background ? It's likely to be blocking Substance Painter from accessing the file your downloaded.
Don't forget your log file. It can be exported from the Help menu of the software.
-----------
Froyok aka Fabrice Piquet, Technical Artist and Product Designer at Allegorithmic.

I tried disabling my AVG Antivirus, same issue