creator ntp automatic


( #1

I wish to create projects of automatic way for some animations.
I always have X layer that mix between if, to add effect in half.


It exists documentation of the XML or a way to create projects from bash?

(Frédéric Devernay) #2

See how we do it in the unit tests:

( #3

thanks!, It is just what wished. I go to test with my project.

( #4

Where can download NatronEngine for gnu/linux?

(Frédéric Devernay) #5

It’s installed with Natron

( #6

I am not very programmer.
As I can test it?

(Frédéric Devernay) #7

the executable is called NatronRenderer on Linux and macOS, and NatronRenderer.exe on windows. It is installed at the same place as the Natron executable.

( #8

Very good. But this does not create an file “.ntp”

(Frédéric Devernay) #9

You can save the project from the python script:




( #10

Already almost i have it, only that no as do a view:

viewer = app.createNode("fr.inria.built-in.Viewer")
viewer = app.Viewer1
viewer.connectInput(0, blur)

And reformat param for 1920x1080

(Frédéric Devernay) #11

Sorry, I don’t understand your last question?

( #12

I can create a project :smiley:
I want to add a viewer
I wish to modify the reformat in 1920x1080

Note: I am to automate by that i have to create 100 projects roughly

(Frédéric Devernay) #13
  1. you could write a python script that creates your Natron graph. You probably know the number of cameras and even the number of frames, so write something like this (or write a script that creates a script like this): and at the end of the script save the project using
    Then run the script through “NatronRenderer -l” and it creates tmpScript.ntp
    Doc for writing scripts is here:

  2. you could write a “toolset pyplug”, which is a python script that can be executed from the Natron GUI. The python code is in the createInstance function. One example is this one, which is included in Natron:
    doc is here: toolsets are mentionned at the bottom

I am sorry, but I really do not have more time for this.