PDA

View Full Version : The returned clip on top of the script in a variable?


videoFred
12th September 2008, 11:00
Hello everybody,

I have made a comparison script that allows me to return several different comparisons.

Like this:

S1= stackhorizontal(source2,result1)
S2= stackhorizontal(source2,result2)


Of cource, at the end of the script, I must return the wanted clip: S1 or S2 etc......

Is there a way to place this at the top of the script? A simple variable won't work.

Thank you in advance,
Fred.

Gavino
12th September 2008, 11:32
Not clear why you can't just add the appropriate return (eg return s1, or even just plain s1) at the end of your script, but what you could do is store the name of the variable at the start and use Eval at the endresult = "s1"
... # body of script
Eval(result)

videoFred
12th September 2008, 11:40
Not clear why you can't just add the appropriate return

It's a very long script, and all my parameters are placed in variables at the top of the script. I often have to change the parameters and also change the returned clip, to see the difference. So I always have to scroll from the top to the bottom of the script.

I will try your suggestion at once, Gavino!

Fred.