Merge pull request #1432 from pypeclub/bugfix/clients-630-nuke_loader_not_undo_reads

This commit is contained in:
Milan Kolar 2021-04-29 17:09:19 +02:00 committed by GitHub
commit 095cb857ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 9 deletions

View file

@ -135,12 +135,14 @@ class LoadMov(api.Loader):
read_name = self.node_name_template.format(**name_data)
# Create the Loader with the filename path set
read_node = nuke.createNode(
"Read",
"name {}".format(read_name)
)
# to avoid multiple undo steps for rest of process
# we will switch off undo-ing
with viewer_update_and_undo_stop():
read_node = nuke.createNode(
"Read",
"name {}".format(read_name)
)
read_node["file"].setValue(file)
read_node["origfirst"].setValue(first)

View file

@ -139,11 +139,15 @@ class LoadSequence(api.Loader):
read_name = self.node_name_template.format(**name_data)
# Create the Loader with the filename path set
# TODO: it might be universal read to img/geo/camera
r = nuke.createNode(
"Read",
"name {}".format(read_name))
# to avoid multiple undo steps for rest of process
# we will switch off undo-ing
with viewer_update_and_undo_stop():
# TODO: it might be universal read to img/geo/camera
r = nuke.createNode(
"Read",
"name {}".format(read_name))
r["file"].setValue(file)
# Set colorspace defined in version data