View Single Post
Old 9th December 2017, 12:18   #9  |  Link
Selur
Registered User
 
Selur's Avatar
 
Join Date: Oct 2001
Location: Germany
Posts: 7,259
Quote:
Obviously they need to have a .py extension to be found that way
Renaming 'scriptA.vpy' to 'scriptA.py', 'scriptB.vpy' to 'scriptB.py' and adjusting 'combined.vpy' to:
Code:
# Imports
import vapoursynth as vs
core = vs.get_core()
#import script A (h:/Output/scriptA.py)
import scriptA
original = vs.get_output()
#import script B (h:/Output/scriptB.py)
import scriptB
clip = vs.get_output()
# processing
if original.format.id != clip.format.id:
 original = core.resize.Bicubic(original, format=clip.format.id)
stacked = core.std.StackHorizontal([original,clip])
# Output
stacked.set_output()
gives me:
Code:
Failed to evaluate the script:
Python exception: No module named 'scriptA'

Traceback (most recent call last):
  File "src\cython\vapoursynth.pyx", line 1830, in vapoursynth.vpy_evaluateScript (src\cython\vapoursynth.c:36860)
  File "H:\Output\combined.vpy", line 5, in <module>
    import scriptA
ModuleNotFoundError: No module named 'scriptA'
Cu Selur
__________________
Hybrid here in the forum, homepage
Selur is offline   Reply With Quote