Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

smaller nuke fixes from production #1036

Merged
merged 1 commit into from
Feb 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pype/hosts/nuke/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def writes_version_sync():
each['file'].setValue(node_new_file)
if not os.path.isdir(os.path.dirname(node_new_file)):
log.warning("Path does not exist! I am creating it.")
os.makedirs(os.path.dirname(node_new_file), 0o766)
os.makedirs(os.path.dirname(node_new_file))
except Exception as e:
log.warning(
"Write node: `{}` has no version in path: {}".format(
Expand Down Expand Up @@ -284,7 +284,7 @@ def create_write_node(name, data, input=None, prenodes=None, review=True):
# create directory
if not os.path.isdir(os.path.dirname(fpath)):
log.warning("Path does not exist! I am creating it.")
os.makedirs(os.path.dirname(fpath), 0o766)
os.makedirs(os.path.dirname(fpath))

_data = OrderedDict({
"file": fpath
Expand Down
2 changes: 1 addition & 1 deletion pype/plugins/nuke/publish/collect_instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def process(self, context):

# establish families
family = avalon_knob_data["family"]
families_ak = avalon_knob_data.get("families")
families_ak = avalon_knob_data.get("families", [])
families = list()

if families_ak:
Expand Down
4 changes: 2 additions & 2 deletions pype/plugins/nuke/publish/submit_nuke_deadline.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def payload_submit(self,

# define chunk and priority
chunk_size = instance.data.get("deadlineChunkSize")
if chunk_size == 0:
if chunk_size == 0 and self.deadline_chunk_size:
chunk_size = self.deadline_chunk_size

priority = instance.data.get("deadlinePriority")
Expand All @@ -151,7 +151,7 @@ def payload_submit(self,
"BatchName": script_name,

# Asset dependency to wait for at least the scene file to sync.
"AssetDependency0": script_path,
# "AssetDependency0": script_path,

# Job name, as seen in Monitor
"Name": jobname,
Expand Down