View Full Version : AVSI Error Reporting
Davinator
18th July 2007, 22:14
Is there a way in an AVSI script to have a popup error message come up during a specified situation, such as when a width of an avi file is not an even number?
nullstuff
18th July 2007, 23:48
...I guess a MessageBox isn't possible, but you may use a MessageClip, instead:
test(blankclip())
function test(clip clp)
{
return frac(float(clp.width)/2.) > 0 ? messageclip("invalid") : clp
}
...in this example, a call like test(blankclip(width=639)) will trigger the error message.
-- nullstuff
IanB
19th July 2007, 00:52
Use Assert, Try and Catch to validate parameters in AVSI scripts.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.