Log in

View Full Version : Invalid arguments to function


mf
25th March 2003, 22:26
If I simply insert this in my script, all works:
PointResize(720, 480)

But, if I make it a function:
function mftest(clip clip) {
clip.PointResize(720, 480)
}

mftest()
- it gives me a "Invalid arguments to function PointResize".

Without the clip. in front of it, it's the same.

sh0dan
25th March 2003, 23:30
Use:

function mftest(clip clip) {
return PointResize(clip, 720, 480)
}

mftest(last)

mf
26th March 2003, 08:38
Thanks a million :). I really wouldn't have found the problem there, even with the manual :).