fix collection assembly and extension determination

This commit is contained in:
Ondrej Samohel 2020-08-07 17:17:36 +02:00
parent a39f975a8f
commit 4b291a286a
No known key found for this signature in database
GPG key ID: 8A29C663C672C2B7
2 changed files with 3 additions and 3 deletions

View file

@ -441,7 +441,7 @@ class ProcessSubmittedJobOnFarm(pyblish.api.InstancePlugin):
# but we really expect only one collection.
# Nothing else make sense.
assert len(cols) == 1, "only one image sequence type is expected" # noqa: E501
_, ext = os.path.splitext(cols[0].tail)
ext = cols[0].tail.lstrip(".")
col = list(cols[0])
self.log.debug(col)

View file

@ -393,7 +393,7 @@ class MayaSubmitDeadline(pyblish.api.InstancePlugin):
payload['JobInfo']['OutputFilename' + str(exp_index)] = rem[0] # noqa: E501
output_file = rem[0]
else:
output_file = col.format('{head}{padding}{tail}')
output_file = col[0].format('{head}{padding}{tail}')
payload['JobInfo']['OutputFilename' + str(exp_index)] = output_file # noqa: E501
output_filenames[exp_index] = output_file
exp_index += 1
@ -407,7 +407,7 @@ class MayaSubmitDeadline(pyblish.api.InstancePlugin):
"with them.")
payload['JobInfo']['OutputFilename' + str(exp_index)] = rem[0] # noqa: E501
else:
output_file = col.format('{head}{padding}{tail}')
output_file = col[0].format('{head}{padding}{tail}')
payload['JobInfo']['OutputFilename' + str(exp_index)] = output_file # noqa: E501
plugin = payload["JobInfo"]["Plugin"]