Selur's Little Message Board

Full Version: Spotless.avs error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Greeting Selur!

Hope all is well with you.  I was doing some encoding today and wanted to use SpotLess but I couldn't preview with that enabled as I was getting:

Quote:Avisynth preview error: -> Script error: Invalid arguments to function 'Reverse'. (C:\Program Files\Hybrid\64bit\Avisynth\avisynthPlugins\SpotLess.avs, line 104) (C:\Users\Ian\AppData\Local\Temp\tempPreviewAvisynthFile18_03_46_145.avs, line 18)

The error traces back to SpotLess.avs which contains the line:

Quote:Last.Reverse(Trim(1,-radT)) + Last + Last.Reverse(Trim(Framecount-1-radT,-radT))

Reverse only accepts one parameter and this is passing two, so I replaced the line with:

Quote:Trim(1,-radT).Reverse() + Last + Trim(Framecount-1-radT,-radT).Reverse()

and now preview opens successfully.

Best wishes, cu
Thanks for the info, will look at it after work
(before work)
I added that line to fix artifacts at the start and end of a clip, but it seems like I made a copy-and-paste mistake. :/
=> Uploaded a new dev with the fixed avs

Cu Selur