Quote:
Originally Posted by Myrsloik
Why oh WHY are you putting so many lines into making your functions not work the same way as basically every other vapoursynth function ever?
And a small hint if you still want to make things more difficult:
planes = []
if y:
planes.insert(0)
...
if planes.count() == 0:
error terror!
|
Hi, are you referring to some like this, arent you?:
Code:
planes=[]
# Select planes
if y:
planes.append(0)
if u:
planes.append(1)
if v:
planes.append(2)
if len(planes)==0:
raise ValueError("Really? There are not any plane selected.")