Replace material operator raising an error #1
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?
Python: Traceback (most recent call last):
File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\blender_org\material_utilities\operators.py", line 338, in execute
return mu_replace_material(self.matorg, self.matrep, self.all_objects, self.update_selection)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\blender_org\material_utilities\functions.py", line 551, in mu_replace_material
obj.select_set(state = True)
RuntimeError: Error: Object 'Cube.003' can't be selected because it is not in View Layer 'ViewLayer'!
That's probably because I've been using the "Quick Groups" add-on which apparently is moving the objects through the different layers.
Nevertheless, maybe this error could be prevented, so I'm attaching the project file.
That is the latest daily Blender 3d 4.2