Thread: MVTools
View Single Post
Old 16th February 2010, 13:12   #1298  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by um3k View Post
Code:
function RollAway_alpha1(clip c, float amount, int segh)
{
    Assert(IsInt(segh/c.height), "'segh' must be a dividend of clip height")
Since segh and c.height are both ints, segh/c.height will always satisfy IsInt(). You want
Code:
    Assert(segh%c.height == 0, ...)
Gavino is offline   Reply With Quote