3
$\begingroup$

I have the next composition that I render from Python. How can I disable/enable the rendering of a specific node?

enter image description here

Thank you.

$\endgroup$

1 Answer 1

3
$\begingroup$

You can set the mute flag of the Node to True.

import bpy

scene = bpy.context.scene
compositing_node_tree = scene.node_tree
compositing_node_tree.nodes['File Output'].mute = True

Alternatively you can just call the bpy.ops.node.mute_toggle() operator within the compositor.

$\endgroup$
0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .