Spaces:
Running
Running
| import _ from 'lodash' | |
| import fs from 'fs' | |
| import { Plugin } from './plugin.js'; | |
| export class FramesPlugin extends Plugin { | |
| constructor(name, options) { | |
| super(name, options); | |
| } | |
| async applyPrerender(originalManuscript, jobId) { | |
| if (this.options.startFrame === undefined || this.options.endFrame === undefined) { | |
| return | |
| } | |
| _.set(originalManuscript, 'meta.generationConfig.extras.additionalBuildParams', | |
| `--frames=${this.options.startFrame}-${this.options.endFrame}`); | |
| } | |
| async applyPostrender(originalManuscript, jobId, outFiles) { | |
| } | |
| } |