Comments (25)
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!
from nexrender.
Thank you @inlife Let's make it π
from nexrender.
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
#2 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AI453o0ApPgHW-SVE-VYMKwS4fTSB_S3ks5qP7KggaJpZM4I8f_l
.
from nexrender.
Hey @pradeeprajr93
Going to test this case, hold on.
from nexrender.
@pradeeprajr93 could you also provide console logs ?
and if you can, project settings dump. That would be great !
from nexrender.
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" } ] }
from nexrender.
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 :)
π
from nexrender.
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
from nexrender.
It's me again π
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.js
into my AE text layer.
Here is my .aep file
FirstDynamic.zip
Help me with this issue. Thanks is advance :)
from nexrender.
@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. :)
from nexrender.
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;
from nexrender.
well, in that case your code inside expression might look like this:
$.evalFile("C:\Some\Path\That\Willbe\Autoreplaced\test.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.
from nexrender.
@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
from nexrender.
@inlife Thanks for your time :) Let's see.
from nexrender.
@pradeeprajr93 looking forward to see your first video made with nexrender ! π
from 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
from nexrender.
Thank you @inlife I changed to .aepx
But why the project is failing even after creating images in nexrender/temp/folder/
from nexrender.
@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
from nexrender.
π @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)
from nexrender.
@pradeeprajr93 rescue team arrived !
fixed, and pushed to npm, 0.4.5
from nexrender.
Your team helped me a lot :)
Let me explain what I'm facing right now with nexrender 0.4.5
- I'm running both API server and render node in same machine π
- I post my JSON data to server and then I'm restarting my render node π
- Render node starts to render and keeps all the images in
nexrender/temp/folder/here
π - After that, I'm getting error in my render node command prompt saying Project Failed :(
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" } ] }
from nexrender.
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).
from nexrender.
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
from nexrender.
@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
from nexrender.
Finally has fixed this issue in latest commit.
I will push updates to npm anytime soon. :)
from nexrender.
Related Issues (20)
- Allow specifying s3ForcePathStyle for s3 provider. HOT 3
- Bad error logging if asset could not be downloaded
- Assets with duplicate filenames can overwrite/mangle each other during download.
- PNG sequence support HOT 2
- 0kb Image Sequence HOT 1
- AERender Options When Using --file Argument HOT 2
- Error in action-encode module (ffmpeg) Error: spawn UNKNOWN HOT 4
- 502 bad gateway HOT 5
- Windows process AfterFX.exe is not killed when no logging is reported for 60 seconds. HOT 7
- aerender error an existing connection was forced closed by the remote host. : unable to receive at line 502 HOT 3
- Audio replacement HOT 12
- How to just change image path only in comp layer of After effects? HOT 1
- Rendering Failure with aerender.exe on Windows Server on Google Comptue engine HOT 3
- RemoveJob is not working HOT 6
- Error: Couldn't find a result file: result.mp4 HOT 22
- Can we submit job to deadline using nexrender? HOT 3
- too slow rendering since update After Effect to 24 HOT 6
- mac 14.5 permission errors HOT 1
- ζεζ³ζεζΈ²ζηιεΊ¦εοΌ HOT 1
- Composition is not found when converting AE project HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nexrender.