View Single Post
Old 19th January 2011, 12:28   #7  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by Jawed View Post
I also need to understand how to make arguments for a plug-in optional
Simply add the argument name in square brackets in the call to env->AddFunction, and supply a default value when you extract the value using AsInt etc.

For an example, see http://avisynth.org/mediawiki/Filter...le_sample_1.3a.
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote