only first output of extract burnin keep ftrackreview

This commit is contained in:
iLLiCiTiT 2020-05-15 10:03:56 +02:00
parent 91b44a2f9f
commit 8ed2b664b4

View file

@ -132,10 +132,18 @@ class ExtractBurnin(pype.api.Extractor):
filled_anatomy = anatomy.format_all(burnin_data)
burnin_data["anatomy"] = filled_anatomy.get_solved()
first_output = True
files_to_delete = []
for filename_suffix, burnin_def in repre_burnin_defs.items():
new_repre = copy.deepcopy(repre)
# Keep "ftrackreview" tag only on first output
if first_output:
first_output = False
elif "ftrackreview" in new_repre["tags"]:
new_repre["tags"].remove("ftrackreview")
burnin_options = copy.deepcopy(profile_options)
burnin_values = copy.deepcopy(profile_burnins)