RunScript in Natron

script

(http://4232.cf) #1

EDIT: There are working RunScript examples in the Natron-Tests github repository. RunScript is not supported on Windows.

I do not attain to do that it work


(Bruno Santos) #2

Hello @bazza, I don’t think that node is supposed to work like that. The idea is a good one, of having a node that outputs text as an input for node that receives text.

Check the details available on the RunScript node here: http://natron.readthedocs.io/en/master/plugins/fr.inria.openfx.RunScript.html

The documentation isn’t very detailed on how you could use for such a purpose, if it is at all possible.


(http://4232.cf) #3

I wished an image like input and ouput. I only probe also text


(http://4232.cf) #4

I did not understand the examples. It is something like this?:

#!/bin/sh

convert rose: “[Project]/scriptoutput00001.png”


(Frédéric Devernay) #5

http://natron.readthedocs.io/en/rb-2.3/plugins/fr.inria.openfx.RunScript.html

The script should be

#!/bin/sh
convert rose: "$1"

and the parameter 1 in runscript should be a filename like [Project]/scriptoutput#####.png.

If you get it and think of a better way to explain it in the doc, please propose a better doc!


(http://4232.cf) #6

Please by that when translating it did not understand it.


(http://4232.cf) #7

don’t work :’(

Natron version 2.3.10 Release.


(http://4232.cf) #8

2018-05-07-195507_537x370_scrot

2018-05-07-195516_169x283_scrot

The image sometimes copies , but does not appear in screen.
Is a image of 32bits 1920 x 1080


(Frédéric Devernay) #9

Please readthedocs: http://natron.readthedocs.io/en/rb-2.3/plugins/fr.inria.openfx.RunScript.html
You have to put a Read node after runscript to read back [Project]/scriptoutput#####.png


(http://4232.cf) #10

This results me very dificult, I’m sorry :frowning:


(Frédéric Devernay) #11

take a look at the file name parameter of your RunScript. [Project]/ appears twice


(http://4232.cf) #12

I repair and do not attain that it walk.

test-imagemagick.ntp.zip (3,6 KB)


(Frédéric Devernay) #13

see https://github.com/NatronGitHub/Natron-Tests/tree/master/TestRunScript (I edited the first message in this thread)


(http://4232.cf) #14

Now I see that it works very different to as I thought it. :blush:


(http://4232.cf) #15

Mixing synfig with natron: