Giter Site home page Giter Site logo

Comments (25)

inlife avatar inlife commented on August 22, 2024 1

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.
image

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.

pradeepverse avatar pradeepverse commented on August 22, 2024 1

Thank you @inlife Let's make it πŸ‘

from nexrender.

jenishngl avatar jenishngl commented on August 22, 2024 1

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 :D

Thanks

β€”
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.

inlife avatar inlife commented on August 22, 2024

Hey @pradeeprajr93
Going to test this case, hold on.

from nexrender.

inlife avatar inlife commented on August 22, 2024

@pradeeprajr93 could you also provide console logs ?
and if you can, project settings dump. That would be great !

from nexrender.

pradeepverse avatar pradeepverse commented on August 22, 2024

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" } ] }

AE 6-24-2016 10-06-17 AM.txt

AEP File.zip
capture

from nexrender.

pradeepverse avatar pradeepverse commented on August 22, 2024

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.

inlife avatar inlife commented on August 22, 2024

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.

pradeepverse avatar pradeepverse commented on August 22, 2024

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
capture

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 :)

from nexrender.

inlife avatar inlife commented on August 22, 2024

@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.

pradeepverse avatar pradeepverse commented on August 22, 2024

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.

inlife avatar inlife commented on August 22, 2024

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.

inlife avatar inlife commented on August 22, 2024

@pradeeprajr93, sorry for a delay.
Well, i checked your project, and seems like everything works fine.

image

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.
image

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.

pradeepverse avatar pradeepverse commented on August 22, 2024

@inlife Thanks for your time :) Let's see.

from nexrender.

inlife avatar inlife commented on August 22, 2024

@pradeeprajr93 looking forward to see your first video made with nexrender ! πŸ˜ƒ

from nexrender.

inlife avatar inlife commented on August 22, 2024

@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.

pradeepverse avatar pradeepverse commented on August 22, 2024

Thank you @inlife I changed to .aepx
But why the project is failing even after creating images in nexrender/temp/folder/

from nexrender.

inlife avatar inlife commented on August 22, 2024

@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.

pradeepverse avatar pradeepverse commented on August 22, 2024

πŸ†˜ @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> &nbsp; &nbsp;at Controller.initialize (C:\Users\Pradeepraj.R\AppData\Roaming\npm\node_modules\nexrender\server\controllers\project.js:20:38) <br> &nbsp; &nbsp;at Controller.create (C:\Users\Pradeepraj.R\AppData\Roaming\npm\node_modules\nexrender\server\controllers\project.js:40:32) <br> &nbsp; &nbsp;at C:\Users\Pradeepraj.R\AppData\Roaming\npm\node_modules\nexrender\server\routers\project.js:15:33 <br> &nbsp; &nbsp;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> &nbsp; &nbsp;at next (C:\Users\Pradeepraj.R\AppData\Roaming\npm\node_modules\nexrender\node_modules\express\lib\router\route.js:131:13) <br> &nbsp; &nbsp;at Route.dispatch (C:\Users\Pradeepraj.R\AppData\Roaming\npm\node_modules\nexrender\node_modules\express\lib\router\route.js:112:3) <br> &nbsp; &nbsp;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> &nbsp; &nbsp;at C:\Users\Pradeepraj.R\AppData\Roaming\npm\node_modules\nexrender\node_modules\express\lib\router\index.js:277:22 <br> &nbsp; &nbsp;at Function.process_params (C:\Users\Pradeepraj.R\AppData\Roaming\npm\node_modules\nexrender\node_modules\express\lib\router\index.js:330:12) <br> &nbsp; &nbsp;at next (C:\Users\Pradeepraj.R\AppData\Roaming\npm\node_modules\nexrender\node_modules\express\lib\router\index.js:271:10)

from nexrender.

inlife avatar inlife commented on August 22, 2024

@pradeeprajr93 rescue team arrived !
fixed, and pushed to npm, 0.4.5

from nexrender.

pradeepverse avatar pradeepverse commented on August 22, 2024

Your team helped me a lot :)

Let me explain what I'm facing right now with nexrender 0.4.5

  1. I'm running both API server and render node in same machine πŸ‘
  2. I post my JSON data to server and then I'm restarting my render node πŸ‘
  3. Render node starts to render and keeps all the images in nexrender/temp/folder/here πŸ‘
  4. 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
capture
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.

inlife avatar inlife commented on August 22, 2024

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.
image

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.

pradeepverse avatar pradeepverse commented on August 22, 2024

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.

inlife avatar inlife commented on August 22, 2024

@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.

inlife avatar inlife commented on August 22, 2024

Finally has fixed this issue in latest commit.
I will push updates to npm anytime soon. :)

from nexrender.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.