may24
7th August 2015, 07:54
Hi folks,
I'm writing a small script. Due function declaration I define a variable as: bool "bgBlur"
Now later on in the script I'm checking if bgBlur is true or false:
...
# if bgBlur true
item = (bgBlur == true) ? {
bb_left = pic.Crop(0,0,100,0)
bb_right = pic.Crop((pic_x + 100),0,0,0)
StackVertical(bb_left,pic,bb_right)
} : {
Overlay(bg_img,pic,padding,0,mode="Blend",opacity=1)
}
...
But Avisynth complains with a syntax error right after the "(bgBlur == true)" ...
But I can't see an error here ...
Block statements should be possible (http://avisynth.nl/index.php/Block_statements) !
I'm writing a small script. Due function declaration I define a variable as: bool "bgBlur"
Now later on in the script I'm checking if bgBlur is true or false:
...
# if bgBlur true
item = (bgBlur == true) ? {
bb_left = pic.Crop(0,0,100,0)
bb_right = pic.Crop((pic_x + 100),0,0,0)
StackVertical(bb_left,pic,bb_right)
} : {
Overlay(bg_img,pic,padding,0,mode="Blend",opacity=1)
}
...
But Avisynth complains with a syntax error right after the "(bgBlur == true)" ...
But I can't see an error here ...
Block statements should be possible (http://avisynth.nl/index.php/Block_statements) !