It is currently May 21st, 2024, 8:12 pm
autoShow music cover when music plays and autohide it when..
-
- Posts: 43
- Joined: August 17th, 2012, 9:06 am
Re: autoShow music cover when music plays and autohide it wh
hey, why whe i use !HideFade Show , at log said Bang:Skin "Show" not found.??
-
- Rainmeter Sage
- Posts: 889
- Joined: September 6th, 2011, 6:34 am
Re: autoShow music cover when music plays and autohide it wh
!HideFade is a bang that operates on whole skins, not measures. You can only fade out a whole skin by it. This bang has nothing to do with Kaelri's Fade script. The fact that !HideFade etc. only works for skins is the very reason Kaelri wrote that script.
Regarding the use of the script: It seems all of the meters you want to fade out are images. As Kaelri said, just add ImageAlpha=#CoverTransparency# to all those meters you marked in red. You probably also need DynamicVariables=1 so they will change when the transparency is adjusted.
Now you have to replace all those !HideMeter and !ShowMeter bangs with something like
!CommandMeasure Transition "FadeIn('Cover', 'CoverTransparency'). You should be able to use group names as well (e.g. 'control' instead of 'Cover').
For example, you could translate this:
into this:
This is all from just reading Kaelri's post, so I hope I'm correct.
On a sidenote: you shouldn't "deactivate" lines of code with a minus. The correct way to add comments in Rainmeter is with a semicolon at the start of a line. Please add a ";" to the start of any line that is not part of the actual Rainmeter statements you want to use. It's better not to gamble and hope Rainmeter doesn't get confused when parsing the code.
Regarding the use of the script: It seems all of the meters you want to fade out are images. As Kaelri said, just add ImageAlpha=#CoverTransparency# to all those meters you marked in red. You probably also need DynamicVariables=1 so they will change when the transparency is adjusted.
Now you have to replace all those !HideMeter and !ShowMeter bangs with something like
!CommandMeasure Transition "FadeIn('Cover', 'CoverTransparency'). You should be able to use group names as well (e.g. 'control' instead of 'Cover').
For example, you could translate this:
Code: Select all
IfAboveValue=0
IfAboveAction=!Execute [!HideMeter Show][!ShowMeterGroup Music][!ShowMeterGroup Control][!ShowMeter Hide][!Redraw]
IfBelowValue=1
IfBelowAction=!Execute [!HideMeter Hide][!HideMeterGroup Music][!HideMeterGroup Control][!ShowMeter Show][!Redraw]
Code: Select all
IfAboveValue=0
IfAboveAction=[!CommandMeasure Transition "FadeOut('Show', 'CoverTransparency')"][!CommandMeasure Transition "FadeIn('Music', 'Control', 'Hide', 'CoverTransparency')"]
IfBelowValue=1
IfBelowAction=[!CommandMeasure Transition "FadeOut('Music', 'Control', 'Hide', 'CoverTransparency')"][!CommandMeasure Transition "FadeIn('Show', 'CoverTransparency')"]
On a sidenote: you shouldn't "deactivate" lines of code with a minus. The correct way to add comments in Rainmeter is with a semicolon at the start of a line. Please add a ";" to the start of any line that is not part of the actual Rainmeter statements you want to use. It's better not to gamble and hope Rainmeter doesn't get confused when parsing the code.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
-
- Posts: 43
- Joined: August 17th, 2012, 9:06 am
Re: autoShow music cover when music plays and autohide it wh
thnx for correcting me. I'm very just new about skinning.
ok, so, i followed as you said, i put ImageAlpha=#CoverTransparency# to all image meters that i want to fade and change the action but the log come with an error
Script: Transition.lua:239:attemp to perform arithmetic on local 'Xi' (a nil value)
here my ini.
is it correct?
ok, so, i followed as you said, i put ImageAlpha=#CoverTransparency# to all image meters that i want to fade and change the action but the log come with an error
Script: Transition.lua:239:attemp to perform arithmetic on local 'Xi' (a nil value)
here my ini.
-
- Rainmeter Sage
- Posts: 889
- Joined: September 6th, 2011, 6:34 am
Re: autoShow music cover when music plays and autohide it wh
Looks fine to me. Kaelri will have to jump in here.
By the way: !RainmeterPluginBang is deprecated and should now be !CommandMeasure. !Execute is deprecated since not too long ago and you can now just remove it and everything will still work.
By the way: !RainmeterPluginBang is deprecated and should now be !CommandMeasure. !Execute is deprecated since not too long ago and you can now just remove it and everything will still work.
Have more fun creating skins with Sublime Text 2 and the Rainmeter Package!
-
- Developer
- Posts: 1721
- Joined: July 25th, 2009, 4:47 am
Re: autoShow music cover when music plays and autohide it wh
Most of it looks right. There's just one small thing: for transition commands, when you're targeting multiple meters, they all need to be within the same parameter (inside the quotes). So where you have
it should be
etc.
You also forgot on a few sections, but this shouldn't stop the transition from working. :)
Code: Select all
FadeOut('Music', 'Control', 'Hide', 'CoverTransparency')
Code: Select all
FadeOut('Music, Control, Hide', 'CoverTransparency')
You also forgot
Code: Select all
UpdateDivider=(1000/#UpdateSpeed#)
-
- Posts: 43
- Joined: August 17th, 2012, 9:06 am
Re: autoShow music cover when music plays and autohide it wh
still got same error in log.
i suggest you to take a look.
i suggest you to take a look.
You do not have the required permissions to view the files attached to this post.
-
- Developer
- Posts: 1721
- Joined: July 25th, 2009, 4:47 am
Re: autoShow music cover when music plays and autohide it wh
I corrected the following problems:
- You did not apply the instructions in my previous post to the whole skin. ;)
- The script in Transition.lua had been edited in a way that caused the transition to break. I restored the original version from this thread.
- You were using the same transparency variable for the "Show" and "Hide/Control/Music" groups. Since you want these to be two different transparencies (100% and 0%), you need to use separate variables.
I also cleaned up some deprecated functions and redundant measures. It looks like it's mostly working now; you'll just need to add some stray meters to one of your meter groups.
- You did not apply the instructions in my previous post to the whole skin. ;)
- The script in Transition.lua had been edited in a way that caused the transition to break. I restored the original version from this thread.
- You were using the same transparency variable for the "Show" and "Hide/Control/Music" groups. Since you want these to be two different transparencies (100% and 0%), you need to use separate variables.
I also cleaned up some deprecated functions and redundant measures. It looks like it's mostly working now; you'll just need to add some stray meters to one of your meter groups.
You do not have the required permissions to view the files attached to this post.
-
- Posts: 43
- Joined: August 17th, 2012, 9:06 am
Re: autoShow music cover when music plays and autohide it wh
THANK YOU! thanx for everything.manage to made it.
i only disable the ImageAlpha=255 cause when player shows the [Show] does not fadeout.
but, i the [knob] seems to not fade out with the other meters.What could be the problem?
i only disable the ImageAlpha=255 cause when player shows the [Show] does not fadeout.
but, i the [knob] seems to not fade out with the other meters.What could be the problem?
-
- Posts: 608
- Joined: February 7th, 2011, 7:27 pm
- Location: Thessaloniki, GR
Re: autoShow music cover when music plays and autohide it wh
Maybe this is the problem? Check the meter groups.
Kaelri wrote:you'll just need to add some stray meters to one of your meter groups.
-
- Posts: 43
- Joined: August 17th, 2012, 9:06 am
Re: autoShow music cover when music plays and autohide it wh
But, i put the [knob] in Group=music.
Is that what you mean?
Is that what you mean?