creator ntp automatic

xml
ntp
project

(http://4232.cf) #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.

example:

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:


(http://4232.cf) #3

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


(http://4232.cf) #4

Where can download NatronEngine for gnu/linux?


(Frédéric Devernay) #5

It’s installed with Natron


(http://4232.cf) #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.


(http://4232.cf) #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:

app.saveTempProject('tmpScript.ntp')

see


and
http://natron.readthedocs.io/en/rb-2.3/devel/PythonReference/NatronEngine/App.html


(http://4232.cf) #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?


(http://4232.cf) #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): https://github.com/NatronGitHub/Natron-Tests/blob/master/TestPY/test___01.py and at the end of the script save the project using
    app.saveTempProject(‘tmpScript.ntp’)
    Then run the script through “NatronRenderer -l myscript.py” and it creates tmpScript.ntp
    Doc for writing scripts is here:
    http://natron.readthedocs.io/en/rb-2.3/devel/index.html

  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: https://github.com/NatronGitHub/Natron/blob/RB-2.3/Gui/Resources/PyPlugs/SplitAndJoin.py
    doc is here: http://natron.readthedocs.io/en/rb-2.3/devel/groups.html toolsets are mentionned at the bottom

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