Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Action ¶
type Action struct { Action string `json:"action" validate:"required"` Parameter json.RawMessage `json:"parameter" validate:"required"` }
Action 其他操作
type Asset ¶
type Asset struct { Type string `json:"type" validate:"required"` // 类型 Src string `json:"src" validate:"required"` // 文件地址 Dest string `json:"dest"` // 下载文件地址 Composition string `json:"composition"` // 合成 LayerName string `json:"layer_name"` // 图层名 LayerIndex int `json:"layer_index"` // 图层索引 Value interface{} `json:"value"` // 值 Expression interface{} `json:"expression"` // 表达式 Property string `json:"property"` // 属性 }
Asset 可替换资源
type Job ¶
type Job struct { Uid string `json:"-"` // 唯一id WorkPath string `json:"-"` // 工作目录 ScriptFile string `json:"-"` // 脚本文件 ResultName string `json:"-"` // 输出文件名 Output string `json:"-"` // 输出文件 Setting *Setting `json:"-"` // 参数配置 Template *Template `json:"template" validate:"required"` // 模板 Assets []*Asset `json:"assets" validate:"required"` // 可替换资源 Actions map[string][]*Action `json:"actions" validate:"-"` // Action }
Job 任务
type Setting ¶
type Setting struct { Config string // JSON配置 ConfigFile string // JSON配置文件 Binary string // AeRender文件位置 WorkPath string // 运行目录 NoLicense bool // 不需要license SkipCleanup bool // 不清理缓存目录 ForceCommandLinePatch bool // 补丁 Debug bool // 调试模式 LogFile string // 日志输出文件 MultiFrames bool Reuse bool StopOnError bool MaxMemoryPercent int ImageCachePercent int }
Setting 参数
type Template ¶
type Template struct { Src string `json:"src" validate:"required"` // 文件 Composition string `json:"composition" validate:"required"` // 合成 Dest string `json:"dest"` // 输出 FrameStart string `json:"frame_start"` // -s 开始帧 FrameEnd string `json:"frame_end"` // -e 结束 IncrementFrame string `json:"increment_frame"` // -i ContinueOnMissing bool `json:"continue_on_missing"` // SettingsTemplate string `json:"settings_template"` // - RStemplate OutputModule string `json:"output_module"` // - OMtemplate OutputExt string `json:"output_ext"` // 输出视频后缀 ImageSequence bool `json:"image_sequence"` // 图片序列帧 }
Template 素材模板
func (*Template) IsRenderImageSequence ¶
IsRenderImageSequence 是否渲染序列帧
Source Files ¶
Click to show internal directories.
Click to hide internal directories.