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

Commit

Permalink
Merge pull request #1038 from pypeclub/bugfix/nuke_small_production_f…
Browse files Browse the repository at this point in the history
…ixes

Nuke small fixes
  • Loading branch information
mkolar authored Feb 19, 2021
2 parents db68129 + 4f6d0ac commit d8ca6f6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pype/hosts/nuke/api/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,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 @@ -350,7 +350,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/hosts/nuke/plugins/publish/precollect_instances.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,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/modules/deadline/plugins/publish/submit_nuke_deadline.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,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 @@ -155,7 +155,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

0 comments on commit d8ca6f6

Please sign in to comment.