This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

[BUG] Spotless.avs error
#1
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
Reply
#2
Thanks for the info, will look at it after work
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply
#3
(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
----
Dev versions are in the 'experimental'-folder of my GoogleDrive, which is linked on the download page.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)