@nexrender/core 1.60.12 → 1.61.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.
|
|
3
|
+
"version": "1.61.0",
|
|
4
4
|
"main": "src/index.js",
|
|
5
5
|
"author": "Inlife",
|
|
6
6
|
"homepage": "https://www.nexrender.com",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"publishConfig": {
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "99fd5549ea07d74a864ca160cded9e6147a61ec6"
|
|
47
47
|
}
|
package/src/assets/nexrender.jsx
CHANGED
|
@@ -253,6 +253,12 @@ nexrender.changeValueForKeypath = function (layer, keys, val) {
|
|
|
253
253
|
change(layer, keys, val);
|
|
254
254
|
};
|
|
255
255
|
|
|
256
|
+
nexrender.log = function(message) {
|
|
257
|
+
if (gAECommandLineRenderer && gAECommandLineRenderer.log_file) {
|
|
258
|
+
gAECommandLineRenderer.log_file.writeln("NX:" + message);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
256
262
|
|
|
257
263
|
/* end of nexrender script */
|
|
258
264
|
/* start of custom user script */
|
|
@@ -18,8 +18,22 @@ const EnhancedScript = require('./EnhancedScript')
|
|
|
18
18
|
* @return string (String) The compiled script with parameter injection outside its original scope to avoid user-defined defaults collision.
|
|
19
19
|
*/
|
|
20
20
|
const wrapEnhancedScript = (job, settings, { dest, src, parameters = [], keyword, defaults, /* ...asset */ }) => {
|
|
21
|
-
const
|
|
21
|
+
const builtInParameters = [
|
|
22
|
+
{ type: 'string', key: 'nxWorkpath', value: job.workpath },
|
|
23
|
+
{ type: 'string', key: 'nxUID', value: job.uid },
|
|
24
|
+
];
|
|
25
|
+
|
|
26
|
+
const enhancedScript = new EnhancedScript(
|
|
27
|
+
dest,
|
|
28
|
+
src,
|
|
29
|
+
[...builtInParameters, ...parameters],
|
|
30
|
+
keyword,
|
|
31
|
+
defaults,
|
|
32
|
+
job.uid,
|
|
33
|
+
settings.logger
|
|
34
|
+
);
|
|
35
|
+
|
|
22
36
|
return enhancedScript.build();
|
|
23
37
|
}
|
|
24
38
|
|
|
25
|
-
module.exports = wrapEnhancedScript
|
|
39
|
+
module.exports = wrapEnhancedScript
|