mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
Refactor condition
This commit is contained in:
parent
ed2d0baaf2
commit
1836daad62
1 changed files with 2 additions and 2 deletions
|
|
@ -624,6 +624,8 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
||||||
input_is_sequence = self.input_is_sequence(repre)
|
input_is_sequence = self.input_is_sequence(repre)
|
||||||
input_allow_bg = False
|
input_allow_bg = False
|
||||||
first_sequence_frame = None
|
first_sequence_frame = None
|
||||||
|
|
||||||
|
ext = os.path.splitext(repre["files"])[1].replace(".", "")
|
||||||
if input_is_sequence and repre["files"]:
|
if input_is_sequence and repre["files"]:
|
||||||
# Calculate first frame that should be used
|
# Calculate first frame that should be used
|
||||||
cols, _ = clique.assemble(repre["files"])
|
cols, _ = clique.assemble(repre["files"])
|
||||||
|
|
@ -642,8 +644,6 @@ class ExtractReview(pyblish.api.InstancePlugin):
|
||||||
ext = os.path.splitext(repre["files"][0])[1].replace(".", "")
|
ext = os.path.splitext(repre["files"][0])[1].replace(".", "")
|
||||||
if ext.lower() in self.alpha_exts:
|
if ext.lower() in self.alpha_exts:
|
||||||
input_allow_bg = True
|
input_allow_bg = True
|
||||||
else:
|
|
||||||
ext = os.path.splitext(repre["files"])[1].replace(".", "")
|
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"fps": float(instance.data["fps"]),
|
"fps": float(instance.data["fps"]),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue