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?
1 Answer
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 = ''
-
$\begingroup$ How did you find out? I also had this problem and thanks to this solved it. Just now still the problem exists with the frame number being appended Image0001.png. How do you disable frame number? I can't find the option to disable this so I opened a new question: blender.stackexchange.com/questions/272410/… $\endgroup$ Aug 19, 2022 at 5:47
-
1$\begingroup$ nevermind! i found out
write_still=True
passed to thebpy.ops.render.render(write_still=True)
$\endgroup$ Aug 19, 2022 at 6:12