Python "unhashable type" error assigning regexp name rule #96304
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#96304
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
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.19044-SP0 64 Bits
Graphics card: Quadro RTX 4000/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 471.11
Blender Version
Broken: version: 3.1.0, branch: master, commit date: 2022-03-08 18:16, hash:
blender/blender@c77597cd0e
Worked: Unknown (I had not previously tried this addon)
Addon Information
Name: Object Color Rules (0, 0, 2)
Author: Campbell Barton
Short description of error
Attempting to assign throws Python error in regexp match of name
Exact steps for others to reproduce the error
Click "assign to selected" again. Error reports to console as shown below
Error traceback from system console:
I do not believe the geometry is significant, but for the sake of completeness my test object was a simple cube mesh, pivot at the center of the base, pivot located at world origin, size 100x100x200 cm. Scene units (again, probably not related) are metric, centimeters, and unit scale of 0.01.
Thank you for creating this Blender addon. Please contact me if you need additional information or a file to reproduce the error. I didn't include one here because my project is large and the error can be reproduced on [essentially] a default mesh.
Added subscriber: @Syscrusher
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscribers: @PratikPB2123, @ideasman42
I'm not sure if this qualifies as a fix, it's more like a workaround for anyone looking to use regex. I removed the caching code, as I don't know how else to fix it for the time being with my limited knowledge in Python, This seems to be working, I'm not sure what performance penalty this brings in, however its quite negligible to notice on my file containing 971 objects (35 geos, 12 empties, Rest are Cameras) with approx 51000000 tris. Be sure to save your file before using this on your mission critical file.
These are the changes I made, removed 1 level of indentation on lines 18 and 19, added # for rest of the lines from line 17 to 22, to comment out the code in
\scripts\addons\object_color_rules.py
If possible, I'll look into the caching code and update.