mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
update the args for review animation
This commit is contained in:
parent
e2d35dedb9
commit
41dd7e06f9
2 changed files with 9 additions and 5 deletions
|
|
@ -53,6 +53,6 @@ class CreateReview(plugin.MaxCreator):
|
|||
decimals=0),
|
||||
EnumDef("rndLevel",
|
||||
rndLevel_enum,
|
||||
default="png",
|
||||
default="smoothhighlights",
|
||||
label="Preference")
|
||||
]
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ class ExtractReviewAnimation(publish.Extractor):
|
|||
Extract Review by Review Animation
|
||||
"""
|
||||
|
||||
order = pyblish.api.ExtractorOrder
|
||||
order = pyblish.api.ExtractorOrder + 0.001
|
||||
label = "Extract Review Animation"
|
||||
hosts = ["max"]
|
||||
families = ["review"]
|
||||
|
|
@ -72,8 +72,14 @@ class ExtractReviewAnimation(publish.Extractor):
|
|||
job_args = list()
|
||||
default_option = f'CreatePreview filename:"{filepath}"'
|
||||
job_args.append(default_option)
|
||||
frame_option = f"outputAVI:false start:{start} end:{end} fps:{fps}" # noqa
|
||||
job_args.append(frame_option)
|
||||
rndLevel = instance.data.get("rndLevel")
|
||||
if rndLevel:
|
||||
option = f"rndLevel:#{rndLevel}"
|
||||
job_args.append(option)
|
||||
options = [
|
||||
"rndLevel", "percentSize", "dspGeometry", "dspShapes",
|
||||
"percentSize", "dspGeometry", "dspShapes",
|
||||
"dspLights", "dspCameras", "dspHelpers", "dspParticles",
|
||||
"dspBones", "dspBkg", "dspGrid", "dspSafeFrame", "dspFrameNums"
|
||||
]
|
||||
|
|
@ -82,8 +88,6 @@ class ExtractReviewAnimation(publish.Extractor):
|
|||
enabled = instance.data.get(key)
|
||||
if enabled:
|
||||
job_args.append(f"{key}:{enabled}")
|
||||
frame_option = f"outputAVI:false start:{start} end:{end} fps:{fps}" # noqa
|
||||
job_args.append(frame_option)
|
||||
job_str = " ".join(job_args)
|
||||
self.log.info(f"{job_str}")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue