summaryrefslogtreecommitdiff
path: root/app/relay
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-09-24 01:52:58 +0200
committerJules Laplace <julescarbon@gmail.com>2018-09-24 01:52:58 +0200
commit2a5fcdecf400b08f782db1fbe3ef4a759d0f08f0 (patch)
tree2c22e137c8baedea8a4809dd1ea4873787859344 /app/relay
parent8004a449f0c3090614158039734816a5b780ec18 (diff)
taskz
Diffstat (limited to 'app/relay')
-rw-r--r--app/relay/modules/pix2pixhd.js17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/relay/modules/pix2pixhd.js b/app/relay/modules/pix2pixhd.js
index 7d3c939..a894d3e 100644
--- a/app/relay/modules/pix2pixhd.js
+++ b/app/relay/modules/pix2pixhd.js
@@ -229,6 +229,22 @@ const render_recursive = {
]
}
}
+const splice = {
+ type: 'perl',
+ script: 'splice.pl',
+ params: (task) => {
+ console.log(selection)
+ return [
+ '--dataset', task.dataset,
+ '--sequence', task.opt.sequence,
+ '--start_frame', selection.start.i,
+ '--end_frame', selection.end.i,
+ '--module', task.module,
+ '--folder_id', task.opt.folder_id,
+ '--endpoint', process.env.API_REMOTE + '/api/file/',
+ ]
+ }
+}
function pad(num, size) {
if (isNaN(parseInt(num))) return num;
@@ -249,5 +265,6 @@ export default {
live,
render,
render_recursive,
+ splice,
}
}