As I tried to reproduce this code: How to find all image coordinates of rendered object?
I encountered an error:
KeyError: 'bpy_prop_collection[key]: key "View Layer" not found'
All objects are in a collection, so was is the problem?
As I tried to reproduce this code: How to find all image coordinates of rendered object?
I encountered an error:
KeyError: 'bpy_prop_collection[key]: key "View Layer" not found'
All objects are in a collection, so was is the problem?
bpy.context.scene.view_layers['ViewLayer'].use_pass_object_index = Trueorbpy.context.view_layer.use_pass_object_index = Trueshould do...? – pyCod3R Feb 12 '22 at 12:22