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

Batch rendering a file with Transform Tools installed crashes on exit #27

Open
davidgiven opened this issue Nov 21, 2020 · 0 comments
Open

Comments

@davidgiven
Copy link

In __init__.py, in register(), there's this line of code:

        km = wm.keyconfigs.addon.keymaps.new(name="SequencerPreview", space_type="SEQUENCE_EDITOR", region_type="WINDOW")

In a batch environment, where I'm calling the blender binary to make it render frames without starting up the whole UI, it seems that wm.keyconfigs.addon is None, causing an exception. It looks like the rendering actually happens but my render script thinks that Blender failed and keeps rerendering the same chunk.

I don't know if it's the right solution, but a solution is to test for None and exit early:

    if not wm.keyconfigs.addon:
        return
    km = wm.keyconfigs.addon.keymaps.new(name="SequencerPreview", space_type="SEQUENCE_EDITOR", region_type="WINDOW")

From bl_info at the top of the file:

    "version": (1, 2, 9),
    "blender": (2, 83, 0),
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