wrybread
3rd March 2011, 13:14
I'm guessing there must be a better way to do conditionals in AVISynth than the way I'm doing it.
Here's what I'm doing:
color = true
a = (color == true) ? a.RGBAdjust(2, 1, 1) : a
That just seems so obtuse. And furthermore I can't apply it to a block of code. So I'm guessing I'm missing something?
Any tips on simply doing something like:
color = true
if (color == true)
{
a = a.RGBAdjust(2, 1, 1)
b = b.RGBAdjust(2, 1, 1)
}
Here's what I'm doing:
color = true
a = (color == true) ? a.RGBAdjust(2, 1, 1) : a
That just seems so obtuse. And furthermore I can't apply it to a block of code. So I'm guessing I'm missing something?
Any tips on simply doing something like:
color = true
if (color == true)
{
a = a.RGBAdjust(2, 1, 1)
b = b.RGBAdjust(2, 1, 1)
}