Blender 4.1.1 - 3D-Coat Applink Python Error when pressing "Get Back" #105343

Open
opened 2024-06-03 20:35:21 +02:00 by MeAi · 2 comments

System Information
Operating system: Windows-10-10.0.22631-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 4090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 546.17

Blender Version
Broken: version: 4.1.1, branch: blender-v4.1-release, commit date: 2024-04-15 15:11, hash: e1743a0317bc
Worked: (newest version of Blender that worked as expected)

Addon Information
Name: 3D-Coat Applink (4, 9, 34)
Author: Kalle-Samuli Riihikoski (haikalle)

When trying to get Object back from 3D-Coat there is a Python Error, Seems like it is importing Geometry but not
able to build Shaders. (See Video)

Tried it with 3Dcoat2023 and 3Dcoat2024.

Python: Traceback (most recent call last):
File "D:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\addons\io_coat3D_init_.py", line 269, in invoke
workflow1(ExportFolder)
File "D:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\addons\io_coat3D_init_.py", line 1351, in workflow1
blender_3DC_blender(texturelist, new_applink_address)
File "D:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\addons\io_coat3D_init_.py", line 1116, in blender_3DC_blender
tex.matlab(objekti,mat_list,texturelist, is_new)
File "D:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\addons\io_coat3D\tex.py", line 690, in matlab
readtexturefolder(objekti, mat_list, texturelist, is_new, udim_textures, udim_indexs)
File "D:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\addons\io_coat3D\tex.py", line 248, in readtexturefolder
createnodes(index_mat, texcoat, create_group_node, objekti, ind, is_new, udim_textures, udim_len)
File "D:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\addons\io_coat3D\tex.py", line 350, in createnodes
group_tree.outputs.new("NodeSocketColor", "Color")
^^^^^^^^^^^^^^^^^^
AttributeError: 'ShaderNodeTree' object has no attribute 'outputs'

**System Information** Operating system: Windows-10-10.0.22631-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 4090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 546.17 **Blender Version** Broken: version: 4.1.1, branch: blender-v4.1-release, commit date: 2024-04-15 15:11, hash: `e1743a0317bc` Worked: (newest version of Blender that worked as expected) **Addon Information** Name: 3D-Coat Applink (4, 9, 34) Author: Kalle-Samuli Riihikoski (haikalle) When trying to get Object back from 3D-Coat there is a Python Error, Seems like it is importing Geometry but not able to build Shaders. (**See Video**) Tried it with 3Dcoat2023 and 3Dcoat2024. Python: Traceback (most recent call last): File "D:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\addons\io_coat3D\__init__.py", line 269, in invoke workflow1(ExportFolder) File "D:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\addons\io_coat3D\__init__.py", line 1351, in workflow1 blender_3DC_blender(texturelist, new_applink_address) File "D:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\addons\io_coat3D\__init__.py", line 1116, in blender_3DC_blender tex.matlab(objekti,mat_list,texturelist, is_new) File "D:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\addons\io_coat3D\tex.py", line 690, in matlab readtexturefolder(objekti, mat_list, texturelist, is_new, udim_textures, udim_indexs) File "D:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\addons\io_coat3D\tex.py", line 248, in readtexturefolder createnodes(index_mat, texcoat, create_group_node, objekti, ind, is_new, udim_textures, udim_len) File "D:\Program Files\Blender Foundation\Blender 4.1\4.1\scripts\addons\io_coat3D\tex.py", line 350, in createnodes group_tree.outputs.new("NodeSocketColor", "Color") ^^^^^^^^^^^^^^^^^^ AttributeError: 'ShaderNodeTree' object has no attribute 'outputs'
MeAi added the
Status
Needs Triage
Priority
Normal
Type
Report
labels 2024-06-03 20:35:22 +02:00
Member

Hi, thanks for the report. From traceback, it seems add-on has not been updated to adapt the new node interface structure.
group_tree.outputs.new won't work anymore, correct way is group_tree.interface.new_socket(name="Color", in_out='OUTPUT', socket_type='NodeSocketColor')

Hi, thanks for the report. From traceback, it seems add-on has not been updated to adapt the new node interface structure. `group_tree.outputs.new` won't work anymore, correct way is `group_tree.interface.new_socket(name="Color", in_out='OUTPUT', socket_type='NodeSocketColor')`
Member
cc @Kalle-SamuliRiihikoski
Pratik Borhade added
Status
Confirmed
Module
Add-ons (Community)
and removed
Status
Needs Triage
labels 2024-06-04 08:00:42 +02:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#105343
No description provided.