mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
instance data keys should not be optional
This commit is contained in:
parent
0211f3da55
commit
51875f592e
1 changed files with 5 additions and 4 deletions
|
|
@ -580,8 +580,9 @@ class ExporterReview(object):
|
|||
def get_file_info(self):
|
||||
if self.collection:
|
||||
# get path
|
||||
self.fname = os.path.basename(self.collection.format(
|
||||
"{head}{padding}{tail}"))
|
||||
self.fname = os.path.basename(
|
||||
self.collection.format("{head}{padding}{tail}")
|
||||
)
|
||||
self.fhead = self.collection.format("{head}")
|
||||
|
||||
# get first and last frame
|
||||
|
|
@ -590,8 +591,8 @@ class ExporterReview(object):
|
|||
else:
|
||||
self.fname = os.path.basename(self.path_in)
|
||||
self.fhead = os.path.splitext(self.fname)[0] + "."
|
||||
self.first_frame = self.instance.data.get("frameStartHandle", None)
|
||||
self.last_frame = self.instance.data.get("frameEndHandle", None)
|
||||
self.first_frame = self.instance.data["frameStartHandle"]
|
||||
self.last_frame = self.instance.data["frameEndHandle"]
|
||||
|
||||
if "#" in self.fhead:
|
||||
self.fhead = self.fhead.replace("#", "")[:-1]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue