It is currently April 27th, 2024, 8:39 pm

Help With Meter Fade Script

Get help with creating, editing & fixing problems with skins
ElderGoose
Posts: 16
Joined: August 15th, 2012, 11:55 pm

Help With Meter Fade Script

Post by ElderGoose »

Need some help figuring this out...
I'm using the script from http://rainmeter.net/forum/viewtopic.php?f=99&t=12802

Code: Select all

[MeterFade]
Measure=Script
ScriptFile=Fade.lua
Min=50
Max=255
Step=10
Start=255
MeterName=MyImg

[MyImg]
Meter=Image
ImageName=Image.png
ImageTint=255,255, 255,[MeterFade]
Antialias=1
DynamicVariables=1
User avatar
MerlinTheRed
Rainmeter Sage
Posts: 889
Joined: September 6th, 2011, 6:34 am

Re: Help With Meter Fade Script

Post by MerlinTheRed »

What exactly is your problem?
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
ElderGoose
Posts: 16
Joined: August 15th, 2012, 11:55 pm

Re: Help With Meter Fade Script

Post by ElderGoose »

It simply doesn't work.
If you run the code, the image doesn't show at all.
I also don't know where to save the .lua file, and if ScriptFile requires the full path name, or just the .lua file name.
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: Help With Meter Fade Script

Post by Kaelri »

I don't see anything wrong with the meter and measure that you posted. (If the "Fade.lua" script file is in the same folder as the skin .INI file, you do not need the full path.)

We are willing to help you, but we need more information than "it doesn't work." What is the command you are using to activate the transition? What is your skin's Update speed? Are there any errors showing in the Rainmeter log?
ElderGoose
Posts: 16
Joined: August 15th, 2012, 11:55 pm

Re: Help With Meter Fade Script

Post by ElderGoose »

I changed the Activated = 0 to Activated = 1 in the lua file.
I've got the update set at 50
When I load/refresh my fade.ini, nothing happens.
Here's what the error log reads:

NOTICE: (01:10:32.712) Refreshing skin "illustro\fade.ini"
DEBUG: (01:10:32.712) Reading file: C:\Users\Ryan\AppData\Roaming\Rainmeter\Rainmeter.ini
DEBUG: (01:10:32.712) Reading file: C:\Users\Ryan\Documents\Rainmeter\Skins\illustro\fade.ini
ERROR: (01:10:32.712) Script: Fade.lua:10: attempt to call method 'GetNumberOption' (a nil value)
User avatar
Kaelri
Developer
Posts: 1721
Joined: July 25th, 2009, 4:47 am

Re: Help With Meter Fade Script

Post by Kaelri »

Do not change any of the code in Fade.lua. Everything is there for a reason, including "Activated=0".

Please make sure you're running the latest version of Rainmeter, either the 2.3.3 release or the 2.4 beta. (Beta would be best.)

You also still have not told us what command you are using to activate the transition. For example, LeftMouseUpAction=!CommandMeasure "MeterFade" "Activate()".
ElderGoose
Posts: 16
Joined: August 15th, 2012, 11:55 pm

Re: Help With Meter Fade Script

Post by ElderGoose »

Got it working. Thanks for your help!