nuke fixing deadline submission

This commit is contained in:
jakub@orbi.tools 2020-01-14 19:51:18 +01:00
parent 71e63ec3e9
commit a9257df48e
5 changed files with 29 additions and 19 deletions

View file

@ -1460,14 +1460,13 @@ class ExporterReviewMov(ExporterReview):
self.log.info("Rendered...")
def save_file(self):
import shutil
with anlib.maintained_selection():
self.log.info("Saving nodes as file... ")
# select temp nodes
anlib.select_nodes(self._temp_nodes)
# create nk path
path = os.path.splitext(self.path)[0] + ".nk"
# save file to the path
nuke.nodeCopy(path)
shutil.copyfile(self.instance.context.data["currentFile"], path)
self.log.info("Nodes exported...")
return path
@ -1524,6 +1523,7 @@ class ExporterReviewMov(ExporterReview):
# ---------- render or save to nk
if farm:
nuke.scriptSave()
path_nk = self.save_file()
self.data.update({
"bakeScriptPath": path_nk,
@ -1542,7 +1542,7 @@ class ExporterReviewMov(ExporterReview):
#---------- Clean up
self.clean_nodes()
nuke.scriptSave()
return self.data