View Single Post
Old 27th September 2015, 14:42   #3  |  Link
Are_
Registered User
 
Join Date: Jun 2012
Location: Ibiza, Spain
Posts: 321
I don't have the time to check it now but:

- You forgot to load vapoursynth in this module:
Code:
import vapoursynth as vs
And in the very first line, outside of any function.

- Don't manually load any plug-in, anywhere, never (well, just for debugging). It is needed in avisynth because it's broken there, but auto-loading is quite sane in vapoursynth.

- Vapoursynth is case sensitive, so, you will be happier if you don't use caps in function names/parameters, just write all lowercase or use underscores.

- Your indentation is not consistent, it will error out.

- """ are used for documentation, use # for general comments.

And to test functions is best to put it in a working script with some source file loaded, and put them in a separate file in "/your/python/installation/site-packages", if you don't you will need to restart the testing program to reload the module, quite annoying.

Last edited by Are_; 27th September 2015 at 14:48.
Are_ is offline   Reply With Quote