Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
1

Simple Bug in Blender Addon

New Here ,
Mar 11, 2022 Mar 11, 2022
I've encountered a bug while using the Substance3DInBlender addon, and it has a simple fix.
 
In the function "RefreshLoadedSBSARData" in the "persistance.py" file, in line 170, it tries to get mat.name for each material slot of every object in bpy.data.objects. The problem is, if an object has an empty material slot, it will return None for "mat" (it won't skip the empty slots) and the script gives an exception and stops working because it tries to get the ".name" attribute of a NoneType object.
 
The exact line that breaks the script is:
sbsarIndex = bpy.context.scene.loadedSbsars.find(mat.name)
 
It is simply solved by continuing the for loop if "mat" is None, by adding something like this before the line above:
    if not mat:
        continue
TOPICS
Blender
494
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Mar 11, 2022 Mar 11, 2022

Thanks for reporting this issue and for the detailed information on a potential fix. We will investigate this.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Mar 24, 2022 Mar 24, 2022

Just want to update you that this issue has been prioritized and is currently on our backlog. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 29, 2022 Dec 29, 2022

Hi, is this information relative with a bug from loading the correct project material with SBSAR ?

I've encountered some bugs in the latest Blender versions and the Painter add-on. Loading materials errors and a lost of the sbsar materials already configured in the blender project. Not being able to load back the previously configured materials make the use of the add-on hazardous, especially if you've deadlines. Sad. Hope this can be solved rapidly.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 12, 2023 Jan 12, 2023

Hi,

Could you share more information about what Painter Addon you are talking about?
Also, could you share the logs from the Blender console/terminal? 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 12, 2023 Jan 12, 2023

Hi,

 

Painter Addon for Blender (Mac OSX 64) ver: 1.0.1

Substance integration tools 1.4.5

Capture d’écran 2023-01-12 à 19.55.30.png

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 17, 2023 Jan 17, 2023

Got it! Thanks for clarifying. The Addon is not specific to Painter. You can use any Sbsar files created using any Substance products. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 12, 2023 Jan 12, 2023

Hi, I also specify that I'm running Two versions of Blender, the LTS 3.3.2 and the Latest Blender 3.4.1 -

iMac Pro, Mac OS Monterey 12.6.2

Really annoying to lose the materials, actually the Substance Add-on is running an error with Blender 3.4.1 while loading a SBSR Material, error log, => an error occurred ! In the shading tab, all the links with the images and the nodes are disconnected. The configurator sidebar isn't running as well. I've tried the solution to remove and re-install the add-on, but nothing changed.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jan 17, 2023 Jan 17, 2023
LATEST

We are currently fixing the issue where the plugin is not compatible with the latest Blender version 3.4. We'll update the website with the latest updates soon. Please stay tuned. 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines