Materials Library throws error when applying a material #89740

Closed
opened 2021-07-08 20:17:35 +02:00 by kursad k · 5 comments
Member

System Information
Operating system: Windows 10

Blender Version
Broken: blender-3.0.0-alpha+master.139c3f791ed4-windows.amd64-release

Short description of error

This add-on throws errors with certain operations like applying a material from its own library/

Exact steps for others to reproduce the error

Enable Material Library add-on

Create an object and add a material

Select the object

Select a material from the Material Library tab under the Material panel

Apply to the selected object

image.png


invoke APPLY
Python: Traceback (most recent call last):
  File "C:\blender\3.0\scripts\addons\materials_library_vx\__init__.py", line 952, in invoke
    return self.execute(context)
  File "C:\blender\3.0\scripts\addons\materials_library_vx\__init__.py", line 1015, in execute
    success = matlib.apply(context)
  File "C:\blender\3.0\scripts\addons\materials_library_vx\__init__.py", line 566, in apply
    self.get_material(name, linked)
  File "C:\blender\3.0\scripts\addons\materials_library_vx\__init__.py", line 492, in get_material
    with bpy.data.libraries.load(self.current_library.path, link, False) as (data_from, data_to):
TypeError: load() takes exactly 1 positional argument (3 given)

location: <unknown location>:-1
Error: Python: Traceback (most recent call last):
  File "C:\blender\3.0\scripts\addons\materials_library_vx\__init__.py", line 952, in invoke
    return self.execute(context)
  File "C:\blender\3.0\scripts\addons\materials_library_vx\__init__.py", line 1015, in execute
    success = matlib.apply(context)
  File "C:\blender\3.0\scripts\addons\materials_library_vx\__init__.py", line 566, in apply
    self.get_material(name, linked)
  File "C:\blender\3.0\scripts\addons\materials_library_vx\__init__.py", line 492, in get_material
    with bpy.data.libraries.load(self.current_library.path, link, False) as (data_from, data_to):
TypeError: load() takes exactly 1 positional argument (3 given)

location: <unknown location>:-1
**System Information** Operating system: Windows 10 **Blender Version** Broken: blender-3.0.0-alpha+master.139c3f791ed4-windows.amd64-release **Short description of error** This add-on throws errors with certain operations like applying a material from its own library/ **Exact steps for others to reproduce the error** Enable Material Library add-on Create an object and add a material Select the object Select a material from the Material Library tab under the Material panel Apply to the selected object ![image.png](https://archive.blender.org/developer/F10217288/image.png) ``` invoke APPLY Python: Traceback (most recent call last): File "C:\blender\3.0\scripts\addons\materials_library_vx\__init__.py", line 952, in invoke return self.execute(context) File "C:\blender\3.0\scripts\addons\materials_library_vx\__init__.py", line 1015, in execute success = matlib.apply(context) File "C:\blender\3.0\scripts\addons\materials_library_vx\__init__.py", line 566, in apply self.get_material(name, linked) File "C:\blender\3.0\scripts\addons\materials_library_vx\__init__.py", line 492, in get_material with bpy.data.libraries.load(self.current_library.path, link, False) as (data_from, data_to): TypeError: load() takes exactly 1 positional argument (3 given) location: <unknown location>:-1 Error: Python: Traceback (most recent call last): File "C:\blender\3.0\scripts\addons\materials_library_vx\__init__.py", line 952, in invoke return self.execute(context) File "C:\blender\3.0\scripts\addons\materials_library_vx\__init__.py", line 1015, in execute success = matlib.apply(context) File "C:\blender\3.0\scripts\addons\materials_library_vx\__init__.py", line 566, in apply self.get_material(name, linked) File "C:\blender\3.0\scripts\addons\materials_library_vx\__init__.py", line 492, in get_material with bpy.data.libraries.load(self.current_library.path, link, False) as (data_from, data_to): TypeError: load() takes exactly 1 positional argument (3 given) location: <unknown location>:-1 ```
Author
Member

Added subscriber: @kursadk

Added subscriber: @kursadk
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

Duplicate of #89680 (Material Library VX add-on cannot apply library materials to selected object)

Thanks for the report

Duplicate of #89680 (Material Library VX add-on cannot apply library materials to selected object) Thanks for the report
Member

Closed as duplicate of #89680

Closed as duplicate of #89680

This issue was referenced by 36671a4e21

This issue was referenced by 36671a4e21b2e2ad7fd381a0529cde2a63505097
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 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#89740
No description provided.