Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors in save_annotation.py: KeyError: 'bpy_prop_collection[key]: key "Value" not found' #3

Open
WilsonAir opened this issue May 17, 2024 · 0 comments

Comments

@WilsonAir
Copy link

WilsonAir commented May 17, 2024

Hi, I'm running the rendering code "shadowcompositing-main/src/compositing/blender/run.py" in blender(version 3.0.1), but some errors come,

<bpy_collection[8], BlendDataObjects> Writing Metadata [1/4] Rendering Sky Traceback (most recent call last): File "/media/wilson/Wilson/DE/Python/virtual_reality_fusion/shadowcompositing-main/rsc/demo (1)/blender/object_insertion.blend/run.py.001", line 31, in <module> File "/media/wilson/Wilson/DE/Python/virtual_reality_fusion/shadowcompositing-main/src/compositing/blender/save_annotation.py", line 165, in <module> save_keyframe() File "/media/wilson/Wilson/DE/Python/virtual_reality_fusion/shadowcompositing-main/src/compositing/blender/save_annotation.py", line 112, in save_keyframe nodes['Value'].outputs[0].default_value = 0 KeyError: 'bpy_prop_collection[key]: key "Value" not found' Error: Python script failed, check the message in the system console

explain:

I have revised the code in "save_annotation.py" to this:

# OBJ = ['bunny', 'ball', 'umbrella', 'glasses'] # Example 1 (teaser) OBJ = ['bunny'] # Example 2 (gray ground) OUT_PATH = '/media/wilson/Wilson/DE/Python/virtual_reality_fusion/shadowcompositing-main/result' # e.g., 'C:\\Downloads\' TAG = 'lssd432' # e.g., 'teaser'

I have debugged in the blender python console:

`

scene = bpy.data.scenes['Scene']
nodes = scene.node_tree.nodes
nodes['Value'].outputs[0].default_value = 0
Traceback (most recent call last):
File "<blender_console>", line 1, in
KeyError: 'bpy_prop_collection[key]: key "Value" not found'
list(nodes.keys())
['Denoise.004', 'Denoise.001', 'Denoise.002', 'Denoise.003', 'Render Layers', 'File Output', 'ID Mask']`

So there is no 'Value' key in nodes ~

I have tried search the tutorial of blender on the google in the last few days, but nothing got ~

Do you have any solution about this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant