flame: make dirs for batch renders

add one more directory layer for renders
This commit is contained in:
Jakub Jezek 2022-03-25 16:53:47 +01:00
parent 267a3e04ed
commit f8e99f38c9
No known key found for this signature in database
GPG key ID: D8548FBF690B100A

View file

@ -199,6 +199,9 @@ class IntegrateBatchGroup(pyblish.api.InstancePlugin):
render_dir_path = os.path.join(
task_workfile_path, "render", "flame")
if not os.path.exists(render_dir_path):
os.makedirs(render_dir_path, mode=0o777)
# TODO: add most of these to `imageio/flame/batch/write_node`
name = "{project[code]}_{asset}_{task[name]}".format(
**anatomy_data
@ -208,7 +211,7 @@ class IntegrateBatchGroup(pyblish.api.InstancePlugin):
# /path/to/file.[0001-0010].exr
media_path = render_dir_path
# name of file represented by tokens
media_path_pattern = "<name>_v<iteration###>.<frame><ext>"
media_path_pattern = "<name>_v<iteration###>/<name>_v<iteration###>.<frame><ext>"
# The Create Open Clip attribute of the Write File node. \
# Determines if an Open Clip is created by the Write File node.
create_clip = True