fix fps collection. this is temporary and needs to be unified to use the same variable across the board

This commit is contained in:
Milan Kolar 2019-06-23 20:48:28 +02:00
parent bde928ebf6
commit 54809f3bf6
3 changed files with 6 additions and 1 deletions

View file

@ -204,7 +204,8 @@ class CollectFileSequences(pyblish.api.ContextPlugin):
'ext': '{}'.format(ext),
'files': list(collection),
"stagingDir": root,
"anatomy_template": "render"
"anatomy_template": "render",
"frameRate": fps
}
instance.data["representations"].append(representation)

View file

@ -70,6 +70,9 @@ class ExtractQuicktimeEXR(pyblish.api.InstancePlugin):
sub_proc = subprocess.Popen(subprocess_mov)
sub_proc.wait()
if not os.path.isfile(full_output_path):
raise("Quicktime wasn't created succesfully")
if "representations" not in instance.data:
instance.data["representations"] = []

View file

@ -15,3 +15,4 @@ class CollectFramerate(pyblish.api.ContextPlugin):
def process(self, context):
context.data["framerate"] = nuke.root()["fps"].getValue()
context.data["fps"] = nuke.root()["fps"].getValue()