Skip to content

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

@WilsonAir

Description

@WilsonAir

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions