Asd-g / AviSynthPlus-Scripts

34 stars 2 forks source link

Global variable in GMSD.avsi #5

Closed zorrozork closed 3 years ago

zorrozork commented 3 years ago

I tried to calculate GMSD twice in the same script, first one between clips A and B and second one between clips A and C. It seems that due to quality_map being a global variable both comparisons return the same value, whichever was calculated last.

Is it possible to implement the function without the global variable?

Asd-g commented 3 years ago

Please check the updated version.

zorrozork commented 3 years ago

Thanks, but the latest version gives me Script error: ScriptClip does not have a named argument "args". This is on AviSynth+ 3.7.0 (r3382).

Asd-g commented 3 years ago

GRunT is required for ScriptClip with "args".

Anyway updated GMSD to use internal ScripClip so GRunT no needed.

zorrozork commented 3 years ago

It's working perfectly! Thanks!