mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 13:52:15 +01:00
added support for samples
This commit is contained in:
parent
0e3034a18a
commit
39ee722b6c
1 changed files with 9 additions and 2 deletions
|
|
@ -37,6 +37,13 @@ class ExtractYetiCache(colorbleed.api.Extractor):
|
|||
if preroll > 0:
|
||||
start_frame -= preroll
|
||||
|
||||
kwargs = {}
|
||||
samples = instance.data.get("samples", 0)
|
||||
if samples == 0:
|
||||
kwargs.update({"sampleTimes": "0.0 1.0"})
|
||||
else:
|
||||
kwargs.update({"samples": samples})
|
||||
|
||||
self.log.info("Writing out cache")
|
||||
# Start writing the files for snap shot
|
||||
# <NAME> will be replace by the Yeti node name
|
||||
|
|
@ -44,9 +51,9 @@ class ExtractYetiCache(colorbleed.api.Extractor):
|
|||
cmds.pgYetiCommand(yeti_nodes,
|
||||
writeCache=path,
|
||||
range=(start_frame, end_frame),
|
||||
sampleTimes="0.0 1.0",
|
||||
updateViewport=False,
|
||||
generatePreview=False)
|
||||
generatePreview=False,
|
||||
**kwargs)
|
||||
|
||||
cache_files = [x for x in os.listdir(dirname) if x.endswith(".fur")]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue