Log in

View Full Version : avisynth scriptclip vs. function arguments


Marin85
6th August 2012, 01:04
Hi,

I have the following basic problem understanding some of the avisynth syntax. I have a function, say,

myfunction(clip c, string "a", int "b") {

c.someotherfunction(x=a,y=b)

}

where someotherfunction is some other function defined accordingly and all that works just fine. My problem starts when I try to use return scriptclip instead, e.g.

myfunction(clip c, string "a", int "b") {

c.

some stuff

return scriptclip("someotherfunction(some other stuff,x=a,y=b)",after_frame=true)

}

then someotherfunction no longer seems to take the input from the myfunction arguments. My question is thus: why is this and how can it be done properly? I hope I have described my problem more or less clearly in its generality.

StainlessS
6th August 2012, 18:19
See the usage in this post:
http://forum.doom9.org/showthread.php?p=1585875#post1585875
EDIT: Also see the following post.

Marin85
6th August 2012, 19:48
Thanks a million for this answer! Installing GRunT and adding the arg parameter in scriptclip made it all work like one would expect.