When I render JPEG sequence from nexrender, it is throwing error stating "ENOENT No such file or directory" and showing \path\to\result,jpg
This is happening because jpeg result frames are appended with 000 in the file name.
Help me with this issue.
Hey @pradeeprajr93
Going to test this case, hold on.
@pradeeprajr93 could you also provide console logs ?
and if you can, project settings dump. That would be great !
Here I'm attaching JSON File which I'm http POSTing, .aepLogs, my After Effects file and snapshot of error I'm getting in command prompt.
(I'm also having doubt in how to run scripts in AfterEffects before rendering using Nexrender, because I need to run Afterfx -r "path\to\script.jsx" which opens the project and make some changes in composition before rendering. Please help me.)
{
"template": "template.aep",
"composition": "DynamicComp",
"settings": {
"outputModule": "PSV",
"outputExt": "JPEG"
},
"assets": [
{
"type": "project",
"src": "http://127.0.0.1:31999/AE/FirstDynamic.aep",
"name": "FirstDynamic.aep"
},
{
"type": "image",
"src": "http://127.0.0.1:31999/AE/imgs/HotAirBalloon.png",
"name": "HotAirBalloon.png"
}
]
}
Basically, as i understood, rendering successfully ends.
But nexrender thinks other way :D
There is a thing called _validator_, and it fails, expecting single video file to be resulted, but finds there a bunch of images. Im planning to disable validator if "outputExt" == jpeg/jpg. For now at least.
Gonna push changes anytime soon.
(I'm also having doubt in how to run scripts in AfterEffects before rendering using Nexrender, because I need to run Afterfx -r "path\to\script.jsx" which opens the project and make some changes in composition before rendering. Please help me.)
Main idea of nexrender was not to open after effects app at all.
But, depending on what changes you are wanting to make, you might be able to use built-in function for dynamic data inside project. Here is docs (look for data or script).
Here is the data script, that will be inserted:
var data = {
"color": [0.63, 0.41, 0.84, 1],
"style": "techno",
"desc": "february 2016"
};
var exports = {
get: function(name) {
return data[name];
}
}
And here is image how it looks inside of AE.

This way you can control timing/properties of most composition elements. But if you need something that only jsx scripting can do, it's better to use only jsx, because, as far as i know, you can even trigger rendering from that thing.
Also, @pradeeprajr93 , could you please answer, why you need to render comp into jpg sequence ? :)
Thank you!
Rendering into JPEG sequence has a lot more advantages. In case if the project is heavy, we can achieve multi-machine rendering by having network of computers and giving output to a common shared location... please check this link for better understanding.
And as of now, I'm not clear enough how we can insert dynamic data into After Effects using nexrender (like how we can change text, images, colors). It would be more helpful if you provide some step by step tutorial or blog post that will explain it deeply.
Thanks in advance :)
:+1:
Rendering into JPEG sequence has a lot more advantages. In case if the project is heavy, we can achieve multi-machine rendering by having network of computers and giving output to a common shared location... please check this link for better understanding.
Yeah, i mentioned that in readme. It's just a thing, that you'll gonna need merge/render them anyways later. And that total rendered image sequence folder size is huge :D
My friend and i was also testing other way of doing things: we've rendered 2 h264 pieces, one on his desktop, other on mine. Then we've merged them with a ffpmeg by copying. We've went this way only because our vids were like 1 hour long, in 720p60fps. That means a huge amount of disk space. )
But there were it's own drawbacks though.
And as of now, I'm not clear enough how we can insert dynamic data into After Effects using nexrender (like how we can change text, images, colors). It would be more helpful if you provide some step by step tutorial or blog post that will explain it deeply.
I was thinking about that for a long time. But now, when i have a reason, i thing im gonna do it! :D
It's me again :smiley:
When I post the following JSON
{
"template": "FirstDynamic.aep",
"composition": "DynamicComp",
"settings": {
"outputModule": "PSV",
"outputExt": "JPEG Sequence"
},
"assets": [
{
"type": "project",
"src": "http://127.0.0.1:31999/AE/FirstDynamic.aep",
"name": "FirstDynamic.aep"
},
{
"type": "image",
"src": "http://127.0.0.1:31999/AE/imgs/HotAirBalloon.png",
"name": "HotAirBalloon.png"
}, {
"type": "script",
"src": "http://127.0.0.1:31999/AE/test.js",
"name": "test.js"
}
]
}
I'm getting the following error
For your info, I need to change the source text of the text layer in my comp. Right now I'm referring to test.js in my local. I've mentioned the same test.js file in network address in the JSON with asset type: script
I need to take text value from test.jsinto my AE text layer.
Here is my .aep file
FirstDynamic.zip
Help me with this issue. Thanks is advance :)
@pradeeprajr93, would be great if you'll provide you test.js. I think problem is that you trying to execute same code, as you were using a jsx scripts.
But expressions are different, look at the documentation: https://helpx.adobe.com/after-effects/using/expression-basics.html
But maybe im wrong. Anyways, if AE reports a problem with expression, that means that problem inside that expression. :3
Btw, finally managed to fix(?) your issue, and also update all dependencies. :)
This is my test.js
prop = {"name": "PradeepRaj", "desig": "Engineer"};
In this case I'm not using jsx. I'm only using expressions in my text layer.
$.evalFile("\c\path\to\test.js");
prop.name;
well, in that case your code inside expression might look like this:
$.evalFile("C:\Some\Path\That\Willbe\Autoreplacedtest.js"); prop.name
As soon as i download new version of AE (44% now downloaded), i'll be able to show it using your project file.
Thank you @Inlife Let's make it :+1:
@pradeeprajr93, sorry for a delay.
Well, i checked your project, and seems like everything works fine.

And here is contents of the test.js file.
prop = {"name": "Inlife", "desig": "Engineer"};
However, this error is not related to nexrender itself. Core of the problem inside AE expression parser.

I've tried to google about that problem. Seems like i cant find anything particular.
What i can do to help you is only to suggest you to "play" with AE expressions, until you succeed :D
@Inlife Thanks for your time :) Let's see.
@pradeeprajr93 looking forward to see your first video made with nexrender ! 😃
@pradeeprajr93 oh, one other thing i totally forgot about!
Path auto-replacing for scripts will work only in *.aepx templates.
So if you want to use expressions, it's better to save projects as *.aepx. !
https://helpx.adobe.com/after-effects/using/projects.html#xml_project_files
Thank you @Inlife I changed to .aepx
But why the project is failing even after creating images in nexrender/temp/folder/
@pradeeprajr93 sorry, try update nexrender again with:
npm install nexrender -g
latest version is: _0.4.4_
if there will be errors again, i'm here, and ready to help ! :D
:sos: @Inlife help me :P
I updated to latest nexrender...
But now when I post my JSON
{
"template": "FirstDynamic_.aepx",
"composition": "DynamicComp",
"settings": {
"outputModule": "PSV",
"outputExt": "JPEG Sequence"
},
"assets": [
{
"type": "project",
"src": "http://127.0.0.1:31999/AE/FirstDynamic_.aepx",
"name": "FirstDynamic_.aepx"
},
{
"type": "image",
"src": "http://127.0.0.1:31999/AE/imgs/HotAirBalloon.png",
"name": "HotAirBalloon.png"
},
{
"type": "script",
"src": "http://127.0.0.1:31999/AE/test.js",
"name": "test.js"
}
]
}
I'm getting the following error in API Server (Command prompt)
TypeError: low(...) is not a function
<br> at Controller.initialize (C:\Users\Pradeepraj.R\AppData\Roaming\npm\node_modules\nexrender\server\controllers\project.js:20:38)
<br> at Controller.create (C:\Users\Pradeepraj.R\AppData\Roaming\npm\node_modules\nexrender\server\controllers\project.js:40:32)
<br> at C:\Users\Pradeepraj.R\AppData\Roaming\npm\node_modules\nexrender\server\routers\project.js:15:33
<br> at Layer.handle [as handle_request] (C:\Users\Pradeepraj.R\AppData\Roaming\npm\node_modules\nexrender\node_modules\express\lib\router\layer.js:95:5)
<br> at next (C:\Users\Pradeepraj.R\AppData\Roaming\npm\node_modules\nexrender\node_modules\express\lib\router\route.js:131:13)
<br> at Route.dispatch (C:\Users\Pradeepraj.R\AppData\Roaming\npm\node_modules\nexrender\node_modules\express\lib\router\route.js:112:3)
<br> at Layer.handle [as handle_request] (C:\Users\Pradeepraj.R\AppData\Roaming\npm\node_modules\nexrender\node_modules\express\lib\router\layer.js:95:5)
<br> at C:\Users\Pradeepraj.R\AppData\Roaming\npm\node_modules\nexrender\node_modules\express\lib\router\index.js:277:22
<br> at Function.process_params (C:\Users\Pradeepraj.R\AppData\Roaming\npm\node_modules\nexrender\node_modules\express\lib\router\index.js:330:12)
<br> at next (C:\Users\Pradeepraj.R\AppData\Roaming\npm\node_modules\nexrender\node_modules\express\lib\router\index.js:271:10)
@pradeeprajr93 rescue team arrived !
fixed, and pushed to npm, 0.4.5
Your team helped me a lot :)
Let me explain what I'm facing right now with nexrender 0.4.5
nexrender/temp/folder/here :+1: Here I'm attaching all the needed files for your reference
AE 6-25-2016 3-50-45 PM.txt
FirstDynamic_.zip
JSON File
{
"template": "FirstDynamic_.aepx",
"composition": "DynamicComp",
"settings": {
"outputModule": "PSV",
"outputExt": "JPEG Sequence"
},
"assets": [
{
"type": "project",
"src": "http://127.0.0.1:31999/AE/FirstDynamic_.aepx",
"name": "FirstDynamic_.aepx"
},
{
"type": "image",
"src": "http://127.0.0.1:31999/AE/imgs/HotAirBalloon.png",
"name": "HotAirBalloon.png"
},
{
"type": "script",
"src": "http://127.0.0.1:31999/AE/test.js",
"name": "test.js"
}
]
}
ok, @pradeeprajr93, i understood.
as you see, if you look inside nexrender/temp/folder/here, all images are successfully rendered and they are lying here.

So, roughly speaking, it's just error message. You can ignore it. :D
Meanwhile i will make nexrender able to recognize a jpeg sequence and to copy resulted images to results folder. This process might take a few days (few other, non thread related things are popping out).
Is there any other way to POST my JSON to nexrender...
Right now I'm using "chrome plugin - Postman"
As I'm new to API concepts, help me :D
Thanks
You can use jquery
Jenish J
On Jun 27, 2016 4:53 PM, "PradeepRaj" [email protected] wrote:
Is there any other way to POST my JSON to nexrender...
Right now I'm using "chrome plugin - Postman"
As I'm new to API concepts, help me :DThanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Inlife/nexrender/issues/2#issuecomment-228719434, or mute
the thread
https://github.com/notifications/unsubscribe/AI453o0ApPgHW-SVE-VYMKwS4fTSB_S3ks5qP7KggaJpZM4I8f_l
.
@pradeeprajr93 @jenishngl im pretty sure there is many different POST clients.
You can create interactive shell/batch script using cURL, or somth like that. Or use some programming language to make requests.
Or even use nexrender built-in api from your own node.js application ! :D
Finally has fixed this issue in latest commit.
I will push updates to npm anytime soon. :)