Material Utilities Addon can't get all materials? #100387
Labels
No Label
Interest
Animation & Rigging
Interest
Blender Cloud
Interest
Collada
Interest
Core
Interest
Documentation
Interest
Eevee & Viewport
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
Import and Export
Interest
Modeling
Interest
Modifiers
Interest
Nodes & Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds, Tests & Devices
Interest
Python API
Interest
Rendering & Cycles
Interest
Sculpt, Paint & Texture
Interest
Translations
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Meta
Good First Issue
Meta
Papercut
Module
Add-ons (BF-Blender)
Module
Add-ons (Community)
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender-addons#100387
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows-10-10.0.19041-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 516.94
Blender Version
Broken: version: 3.4.0 Alpha, branch: master, commit date: 2022-08-11 23:16, hash:
blender/blender@282a861e11
Worked: ?
Short description of error
The Material Utilities add-on fails to display all materials, because it attempts to access
material.preview.icon_id
for grease pencil materials, which do not have a preview.Exact steps for others to reproduce the error
Added subscriber: @HMRP
Added subscriber: @rjg
Changed status from 'Needs Triage' to: 'Needs User Info'
The "Dots Stroke" material is a default material created for grease pencil brush strokes. Hence, it is not an assignable material for meshes. Could you please explain which exact steps result in an error message being displayed?
Loading Factory Setting or delete all blender profiles,open blender appliation, the material 'Dots Stroke' will display in outline
I'm aware that this material always exists, hence I stated that it is the default material for grease pencil brush strokes. It is therefore correct, that the add-on does not allow to select this material for meshes as it is only for grease pencil. What I was asking about was your reference to "Material_utils/menus.py-> line 57". Is there any exception raised in this particular line if you interact with the add-on or is this the line you believed to be incorrectly implemented?
This add-on fetches all materials, including grease pencil brush, but this material does not have the icon_id attribute, so the first 2 commands of this add-on will report an error.
这个插件会获取所有材质,包括蜡笔的材质。但是这个材质又没有 icon_id这个属性,所以这个插件的前2个命令都会报错。
Changed status from 'Needs User Info' to: 'Confirmed'
Apologies for the misunderstanding on my part.
The add-on does not support grease pencil materials. The attempt to access the non-existent
icon_id
for grease pencil materials is one of several issues. Currently, the add-on also does not check whether the material can be assigned to the particular object type. In the current state in Blender 3.4.0 it does not appear to be useable at all.There is a more recent version that is supposed to address these issues on @ChristopherHindefjord's GitHub , but it has not been merged into Blender yet. The open ticket for this is #90683.
Added subscriber: @ChristopherHindefjord
As a side note, Blender's Python API should probably prevent grease pencil materials from being assigned to meshes.
Fixed in
932ed7422d
.