VapourSynth 1.0 documentation
previous | next | index

# LoadPlugin

`std.``LoadPlugin`(string path)

  Load a native VapourSynth plugin. If successful, the loaded plugin’s functions will end up in their own namespace.

  Returns an error if a plugin with the same identifier or namespace already has been loaded. This is to prevent naming collisions or multiple versions of the same plugin being loaded at once.

  Watch out for escape characters:

      # Causes an error because \ is Python's escape character
      LoadPlugin(path='c:\plugins\filter.dll')
      # The correct way(s)
      LoadPlugin(path='c:/plugins/filter.dll')
      LoadPlugin(path=r'c:\plugins\filter.dll')
      LoadPlugin(path='c:\\plugins\\filter.dll')