change workfile subset naming in nuke to match other hosts

This commit is contained in:
Milan Kolar 2020-03-13 23:52:35 +01:00
parent fb915f2366
commit 2017d2315a

View file

@ -23,11 +23,12 @@ class CollectWorkfile(pyblish.api.ContextPlugin):
add_publish_knob(root)
family = "workfile"
task = os.getenv("AVALON_TASK", None)
# creating instances per write node
file_path = context.data["currentFile"]
staging_dir = os.path.dirname(file_path)
base_name = os.path.basename(file_path)
subset = "{0}_{1}".format(os.getenv("AVALON_TASK", None), family)
subset = family + task.capitalize()
# Get frame range
first_frame = int(root["first_frame"].getValue())