2
$\begingroup$

I want to change the value of File Subpath of File Output node in Compositor from python. I'm able to change its basepath, but I'm unable to change the File Subpath. Is it possible to change this from python? If yes, how?

sample image

$\endgroup$
1
$\begingroup$

I found a solution here and it works

scene = bpy.context.scene
for node in scene.node_tree.nodes:
    if node.type == 'OUTPUT_FILE':
        node.file_slots[0].path = ''
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.