Skip to content

Doesn't work on recent Blender (4.0) API #46

@Vittorio-Caggiano

Description

@Vittorio-Caggiano

Hi, thanks for sharing these scripts! I am a complete newbie to Blender and I really appreciate them.

I tried those scripts with the new Blender 4.0 and it seems this version introduced some major changes in the API which broke them.

Error: Python: Traceback (most recent call last):
  File "/test/blender-cli-rendering/10_mocap.py", line 137, in <module>
    utils.build_scene_composition(scene)
  File "/test/blender-cli-rendering/utils/composition.py", line 184, in build_scene_composition
    vignette_node = create_vignette_node(scene.node_tree)
  File "/test/blender-cli-rendering/utils/composition.py", line 165, in create_vignette_node
    vignette_node_group = add_vignette_node_group()
  File "/test/blender-cli-rendering/utils/composition.py", line 118, in add_vignette_node_group
    group.inputs.new("NodeSocketColor", "Image")
AttributeError: 'CompositorNodeTree' object has no attribute 'inputs'
Error: Cannot render, no camera

Would it be possible to have a version compatible with Blender 4.0?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions