Skip to content
This repository was archived by the owner on Nov 15, 2021. It is now read-only.
This repository was archived by the owner on Nov 15, 2021. It is now read-only.

Blender compositing not working #11

Description

@dedosmedia

Always that I try to render some compositing nodes I get black pictures in the output. Does not work this module with compositing nodes?

My test.blend file is just an input node (single jpg image) and a composite node. Like this:
blender

I have been testing with Docker lambci/lambda:build-python3.6 container, with module bpy_lambda installed.

This is my python code, to open the test.blend and the write a still image to /tmp/output.jpg on disk :
`try:
import bpy
except ImportError:
from bpy_lambda import bpy

bpy.ops.wm.open_mainfile(filepath="test.blend")
bpy.ops.render.render(write_still=True)
`
When I run:

python test.py
/tmp/output.jpg is just a black picture

This is the log from the python script:
bpy_lambda


On the same machine I installed blender binaries.
Running this command I render the composition.

blender -b "test.blend" --use-extension 1 -noaudio -nojoystick -P test.py

This time it works correctly, /tmp/output.jpg is just my same input0.jpg image, which is right.

This is the log:
blender binary

Notice this time the log has some lines with "Compositing" word, which are not when I user bpy_lambda.
Fra:47 Mem:109.20M (0.00M, Peak 109.20M) | Time:00:00.11 | Compositing | Tile 31-40

Is there a way I can get it working with bpy_lambda?

Thanks so much in advance young dude!!

I attach my files for reference:
test.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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