@nexrender/core 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexrender/core",
3
- "version": "1.31.0",
3
+ "version": "1.35.0",
4
4
  "main": "src/index.js",
5
5
  "author": "Inlife",
6
6
  "scripts": {
@@ -29,5 +29,5 @@
29
29
  "publishConfig": {
30
30
  "access": "public"
31
31
  },
32
- "gitHead": "2b0812eb0ed61e4f1971450aab250522d77e3dab"
32
+ "gitHead": "733da5702713cda3df5197b80f35eb4fbd74bd45"
33
33
  }
package/readme.md CHANGED
@@ -36,6 +36,11 @@ const main = async () => {
36
36
  skipCleanup: true,
37
37
  addLicense: false,
38
38
  debug: true,
39
+ actions: {
40
+ "custom-action": (job, settings, {input, params}, type) => {
41
+ // Custom action code
42
+ }
43
+ },
39
44
  })
40
45
  }
41
46
 
@@ -59,9 +64,11 @@ Second one is responsible for mainly job-related operations of the full cycle: d
59
64
  * `skipCleanup` - boolean, providing true will prevent nexrender from removing the temp folder with project (false by default)
60
65
  * `skipRender` - boolean, providing true will prevent nexrender from running actual rendering, might be useful if you only want to call scripts
61
66
  * `multiFrames` - boolean, providing true will attmpt to use aerender's built-in feature of multi frame rendering (false by default)
67
+ * `multiFramesCPU` - integer between 1-100, the percentage of CPU used by multi frame rendering, if enabled (90 by default)
62
68
  * `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.
63
69
  * `maxMemoryPercent` - integer, undefined by default, check [original documentation](https://helpx.adobe.com/after-effects/using/automated-rendering-network-rendering.html) for more info
64
70
  * `imageCachePercent` - integer, undefined by default, check [original documentation](https://helpx.adobe.com/after-effects/using/automated-rendering-network-rendering.html) for more info
65
71
  * `addLicense` - boolean, providing false will disable ae_render_only_node.txt license file auto-creation (true by default)
66
72
  * `forceCommandLinePatch` - boolean, providing true will force patch re-installation
67
73
  * `onInstanceSpawn` - a callback, if provided, gets called when **aerender** instance is getting spawned, with instance pointer. Can be later used to kill a hung aerender process. Callback signature: `function (instance, job, settings) {}`
74
+ * `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