fixed camera options

This commit is contained in:
Ondrej Samohel 2020-04-01 19:16:54 +02:00
parent 66f7367524
commit 17622b046d
No known key found for this signature in database
GPG key ID: 8A29C663C672C2B7

View file

@ -58,9 +58,9 @@ class ExtractPlayblast(pype.api.Extractor):
preset['compression'] = "png"
preset['start_frame'] = start
preset['end_frame'] = end
preset['camera_options'] = {
"depthOfField": cmds.getAttr("{0}.depthOfField".format(camera)),
}
camera_option = preset.get("camera_option", {})
camera_option["depthOfField"] = cmds.getAttr(
"{0}.depthOfField".format(camera))
stagingdir = self.staging_dir(instance)
filename = "{0}".format(instance.name)