@nexrender/worker 1.31.0 → 1.35.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/package.json +3 -3
  2. package/readme.md +8 -1
  3. package/src/bin.js +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexrender/worker",
3
- "version": "1.31.0",
3
+ "version": "1.35.0",
4
4
  "author": "inlife",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@nexrender/api": "^1.27.0",
20
- "@nexrender/core": "^1.31.0",
20
+ "@nexrender/core": "^1.35.0",
21
21
  "@nexrender/types": "^1.27.0",
22
22
  "arg": "^4.1.0",
23
23
  "chalk": "^2.4.2"
@@ -25,5 +25,5 @@
25
25
  "publishConfig": {
26
26
  "access": "public"
27
27
  },
28
- "gitHead": "2b0812eb0ed61e4f1971450aab250522d77e3dab"
28
+ "gitHead": "733da5702713cda3df5197b80f35eb4fbd74bd45"
29
29
  }
package/readme.md CHANGED
@@ -52,6 +52,11 @@ const main = async () => {
52
52
  skipCleanup: true,
53
53
  addLicense: false,
54
54
  debug: true,
55
+ actions: {
56
+ "custom-action": (job, settings, {input, params}, type) => {
57
+ // Custom action code
58
+ }
59
+ },
55
60
  })
56
61
  }
57
62
 
@@ -68,6 +73,7 @@ Available settings (almost same as for `nexrender-core`):
68
73
  * `skipCleanup` - boolean, providing true will prevent nexrender from removing the temp folder with project (false by default)
69
74
  * `skipRender` - boolean, providing true will prevent nexrender from running actual rendering, might be useful if you only want to call scripts
70
75
  * `multiFrames` - boolean, providing true will attmpt to use aerender's built-in feature of multi frame rendering (false by default)
76
+ * `multiFramesCPU` - integer between 1-100, the percentage of CPU used by multi frame rendering, if enabled (90 by default)
71
77
  * `reuse` - boolean, false by default, (from Adobe site): Reuse the currently running instance of After Effects (if found) to perform the render. When an already running instance is used, aerender saves preferences to disk when rendering has completed, but does not quit After Effects. If this argument is not used, aerender starts a new instance of After Effects, even if one is already running. It quits that instance when rendering has completed, and does not save preferences.
72
78
  * `maxMemoryPercent` - integer, undefined by default, check [original documentation](https://helpx.adobe.com/after-effects/using/automated-rendering-network-rendering.html) for more info
73
79
  * `imageCachePercent` - integer, undefined by default, check [original documentation](https://helpx.adobe.com/after-effects/using/automated-rendering-network-rendering.html) for more info
@@ -76,5 +82,6 @@ Available settings (almost same as for `nexrender-core`):
76
82
  * `stopOnError` - boolean, stop the pick-up-and-render process if an error occurs (false by default)
77
83
  * `polling` - number, amount of miliseconds to wait before checking queued projects from the api, if specified will be used instead of NEXRENDER_API_POLLING env variable
78
84
  * `wslMap` - string, drive letter of your WSL mapping in Windows
79
- * `aeParams` - array of strings, any additional params that will be passed to the aerender binary, a name-value parameter pair separated by a space
85
+ * `aeParams` - array of strings, any additional params that will be passed to the aerender binary, a name-value parameter pair separated by a space,
86
+ * `actions` - an object with keys corresponding to the `module` field when defining an action, value should be a function matching expected signature of an action. Used for defining actions programmatically without needing to package the action as a separate package
80
87
 
package/src/bin.js CHANGED
@@ -27,6 +27,7 @@ const args = arg({
27
27
  '--force-patch': Boolean,
28
28
  '--debug': Boolean,
29
29
  '--multi-frames': Boolean,
30
+ '--multi-frames-cpu': Number,
30
31
  '--reuse': Boolean,
31
32
 
32
33
  '--max-memory-percent': Number,