blender-addon icon indicating copy to clipboard operation
blender-addon copied to clipboard

KeyError" 'bpy_prop_collection[key]: key "Z" not found'

Open Ni-Chen opened this issue 6 years ago • 3 comments

I have error message when I render a light field like below: KeyError" 'bpy_prop_collection[key]: key "Z" not found'.

Do you have any ideas about this problem?

Thanks?

Ni-Chen avatar Mar 08 '18 07:03 Ni-Chen

Line 538 of the lightfield_simulator.py file, replace 'Z' by 'Depth' ;)

NathanCrombez avatar Mar 09 '18 16:03 NathanCrombez

Line 538 of the lightfield_simulator.py file, replace 'Z' by 'Depth' ;)

Hello Nathan, I have a similar KeyError but not the key 'Z' but the key 'RenderLayer', as shown below:

image

It's really confusing. Do you know what's wrong? Is it a version problem? Mine is 2.77.

Many thanks!!

ChairManMeow-SY avatar May 07 '20 19:05 ChairManMeow-SY

It has been solved. The KeyError is caused by the system language. When I choose the simplified Chinese, the key 'RenderLayer' is also translated to Chinese '渲染层'. I wonder whether this problem exists for other language users.

Line 538 of the lightfield_simulator.py file, replace 'Z' by 'Depth' ;)

Hello Nathan, I have a similar KeyError but not the key 'Z' but the key 'RenderLayer', as shown below:

image

It's really confusing. Do you know what's wrong? Is it a version problem? Mine is 2.77.

Many thanks!!

ChairManMeow-SY avatar May 08 '20 11:05 ChairManMeow-SY