It is currently October 28th, 2020, 8:25 am

Plugin: Chameleon

Plugins and Addons popular with the Community
ms310
Posts: 224
Joined: April 1st, 2015, 7:16 am

Re: Plugin: Chameleon

Post by ms310 »

For me this works as long as the W and H don't go off screen.

Code: Select all

[ChameleonDesktop]
Measure=Plugin
Plugin=Chameleon
Type=Desktop
CropX=#CURRENTCONFIGX#
CropY=#CURRENTCONFIGY#
CropW=360
CropH=100
ContextAwareColors=1
DynamicVariables=1
Disabled=1
My windows version is: Windows 10 Enterprise Version 1809 )OS Build 17763.1098).
User avatar
Cariboudjan
Posts: 98
Joined: May 12th, 2019, 8:55 am

Re: Plugin: Chameleon

Post by Cariboudjan »

Cariboudjan wrote: March 15th, 2020, 7:16 pm Actually with that specific bug, the problem seems to have been resolved by updating Windows. Currently using Windows 10 1903.
Scratch this statement. It seems to work 100% on Windows 10, but on Windows 7 the colors will randomly decide to not change on wallpaper change.
Tarimaru
Posts: 3
Joined: April 1st, 2020, 9:10 am

Re: Plugin: Chameleon

Post by Tarimaru »

Hi,

Could someone explain to me what I´m missing or if it is even possible. I want the skin to pick a color based on the specific location of the skin and the size.
But i just get the Error: Chameleon: Could not get handle on C:\Users\[My User Name]\OneDrive\Documents\Rainmeter\Skins\Ajax\ColorPicker\0.

Code: Select all

[Rainmeter]
Update=10
Group=Ajax_Color
DynamicVariables=1

[Variables]
@includeVariables=#@#Color.inc
CP1=[L1CP]

[Wallpaper]
Measure=Registry
RegHKey=HKEY_CURRENT_USER
RegKey=Control Panel\Desktop
RegValue=WallPaper

[MeterPicker1]
Meter=String
Text=#CURRENTCONFIGX#
DynamicVariables=1
W=50
H=50
SolidColor=#CP1#
MiddleMouseUpAction=[!WriteKeyValue Variables CustomColor [AverageCP] "#@#Color.inc"][!RefreshGroup Ajax_Color]
LeftMouseUpAction=[!WriteKeyValue ParentChameleonCP CropX "#CURRENTCONFIGX#"][!WriteKeyValue ParentChameleonCP CropY "#CURRENTCONFIGY#"][!Refresh]

[ParentChameleonCP]
Measure=Plugin
Plugin=Chameleon
Type=File
Path=[Wallpaper]
CropDesktop=1
CropX=1032
CropY=87
CropW=50
CropH=50

[D1CP]
Measure=Plugin
Plugin=Chameleon
Parent=ParentChameleon
Format=Dec
Color=Dark1

[D2CP]
Measure=Plugin
Plugin=Chameleon
Parent=ParentChameleon
Format=Dec
Color=Dark2

[L1CP]
Measure=Plugin
Plugin=Chameleon
Parent=ParentChameleon
Format=Dec
Color=Dark4

[L2CP]
Measure=Plugin
Plugin=Chameleon
Parent=ParentChameleon
Format=Dec
Color=Dark3

[AverageCP]
Measure=Plugin
Plugin=Chameleon
Parent=ParentChameleon
Format=Dec
Color=Average

[BG1CP]
Measure=Plugin
Plugin=Chameleon
Parent=ParentChameleon
Format=Dec
Color=Background1

[BG2CP]
Measure=Plugin
Plugin=Chameleon
Parent=ParentChameleon
Format=Dec
Color=Background2

[FG1CP]
Measure=Plugin
Plugin=Chameleon
Parent=ParentChameleon
Format=Dec
Color=Foreground1

[FG2CP]
Measure=Plugin
Plugin=Chameleon
Parent=ParentChameleon
Format=Dec
Color=Foreground2
mak_kawa
Posts: 905
Joined: December 30th, 2015, 9:47 am

Re: Plugin: Chameleon

Post by mak_kawa »

Hi Tarimaru

Your code causes fatal error for my Rainmeter and it is instantly crashed and disappears.:-) Furthermore, I have not Color.inc file. So, I couldn't examine your code actualy. But, several things I have noticed are;

1. DynamicVariables=1 is not supported in [Rainmeter] section. See here.

2. So, DynamicVaribales=1 seems to be needed at least in [ParentChameleonCP] (and [Wallpaper]?) measure(s).

3. Dynamic variables are not supported also in [Variables] section. See here. So, I am not sure CP1=[L1CP] works or not.

Sorry if I am wrong...
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4144
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Plugin: Chameleon

Post by eclectic-tech »

Tarimaru wrote: May 9th, 2020, 7:17 pm Hi,

Could someone explain to me what I´m missing or if it is even possible. I want the skin to pick a color based on the specific location of the skin and the size.
But i just get the Error: Chameleon: Could not get handle on C:\Users\[My User Name]\OneDrive\Documents\Rainmeter\Skins\Ajax\ColorPicker\0.
You name the Chameleon parent measure [ParentChameleonCP], but in all your Chameleon child measures, you refer to it as Parent=ParentChameleon, that is why this code is crashing Rainmeter.

Change the measure name to [ParentChameleon] and change 'ParentChameleonCP' in the !WriteKeyValues of the LeftMouseUpAction in [MeterPicker1] section to 'ParentChameleon'.

The skin will now show the average color for the cropped area when you left-click and write that value to the color.inc file when you middle-click.

EDIT: You do not need skin Update=10 in the [Rainmeter] section. In fact, 'Update=16' is the fastest update available. The default value of 1000 should work fine for this skin.
Tarimaru
Posts: 3
Joined: April 1st, 2020, 9:10 am

Re: Plugin: Chameleon

Post by Tarimaru »

Now it works, Thanks. The wrong name of the ParentMeasure was the issue. It´s always the little things. :handtohead:
itsfaketbh
Posts: 12
Joined: July 2nd, 2020, 8:41 am

Re: Plugin: Chameleon

Post by itsfaketbh »

Hello,
its my first time writing here so im sorry if im not making sense.
First lets start with what i want to make. I want a color sensitive player that changes color based on its position on the screen. If not possible, then to atleast make the BG transparent.
Im using the spotifycontrol skin: https://www.deviantart.com/fuckyeahlucas/art/Spotify-Control-WORKING-Rainmeter-Skin-v4-3-594025385

I also modified the original .ini file to not display the album cover as that is not something i want.
i didnt know how to upload a picture so i hope its attached. The player is stuck with black and white colors and i dont know what to do now.

Code: Select all

[Rainmeter]
Update=100
AccurateText=1
SkinWidth=(#SCALE#*300)
SkinHeight=(#SCALE#*420)
RightMouseUpAction=[!SkinCustomMenu]
ContextTitle=Open Spotify
ContextAction=!Execute ["%userprofile%\AppData\Roaming\Spotify\spotify.exe"]
ContextTitle2=----
ContextAction2=[]
ContextTitle3=Smallest Skin Size (0.5)
ContextAction3=[!WriteKeyValue Variables SCALE "(#SCREENAREAWIDTH#*0.0005-0.5)"][!Refresh]
ContextTitle4=Smaller Skin Size (0.8)
ContextAction4=[!WriteKeyValue Variables SCALE "(#SCREENAREAWIDTH#*0.0005-0.2)"][!Refresh]
ContextTitle5=Normal Skin Size (1.0)
ContextAction5=[!WriteKeyValue Variables SCALE "(#SCREENAREAWIDTH#*0.0005)"][!Refresh]
ContextTitle6=Bigger Skin Size (1.2)
ContextAction6=[!WriteKeyValue Variables SCALE "(#SCREENAREAWIDTH#*0.0005+0.2)"][!Refresh]
ContextTitle7=Biggest Skin Size (1.5)
ContextAction7=[!WriteKeyValue Variables SCALE "(#SCREENAREAWIDTH#*0.0005+0.5)"][!Refresh]
ContextTitle8=----
ContextAction8=[]
ContextTitle9=Update Skin
ContextAction9=[!Refresh]
ContextTitle10=----
ContextAction10=[]
ContextTitle11=Open Rainmeter
ContextAction11=[!Manage]
ContextTitle12=Standard Context Menu
ContextAction12=[!SkinMenu]

[Metadata]
Name=Spotify Control
Author=fuckyeahlucas from DeviantART
Information=This skin is so minimal that no information is available. Sorry.
Version=4.3
License=Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
 
[Variables]
SCALE=0.568

[CoverColor]
Measure=Plugin
Plugin=Chameleon
Type=Desktop
Format=Dec

[BackgroundColor]
Measure=Plugin
Plugin=Chameleon
Parent=CoverColor
Color=Background1


[Accent1]
Measure=Plugin
Plugin=Chameleon
Parent=CoverColor
Color=Foreground1


[Accent2]
Measure=Plugin
Plugin=Chameleon
Parent=CoverColor
Color=Foreground2
	
[MeasureState]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=State
IfCondition=MeasureState = 1
IfTrueAction=[!HideMeterGroup Top][!ShowMeterGroup Bottom]
IfCondition2=MeasureState = 2
IfTrueAction2=[!ShowMeterGroup Top][!HideMeterGroup Bottom]
IfCondition3=MeasureState = 0
IfTrueAction3=[!HideMeterGroup Top][!HideMeterGroup Bottom]
IfConditionMode=0
DynamicVariables=1

[MeasureArtist]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Artist

[MeasureAlbum]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Album

[MeasureTrack]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Title

[MeasureProgress]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Progress
Substitute="NaN":"1"
DynamicVariables=1

[MeasureCurrentPosition]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Position

[MeasureLength]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Duration

[MeterCoverPlay]
Meter=Image
ImageName=[MeasureCover]
X=0
Y=0
W=(#SCALE#*300)
H=(#SCALE#*300)
MaskImageName=#@#\Images\Mask.png
LeftMouseUpAction=!Execute ["%userprofile%\AppData\Roaming\Spotify\spotify.exe"]
AntiAlias=1
DynamicVariables=1
Group=Bottom

[MeterCoverPause]
Meter=Image
ImageName=[MeasureCover]
X=0
Y=0
W=(#SCALE#*300)
H=(#SCALE#*300)
MaskImageName=#@#\Images\Mask1.png
Greyscale=1
AntiAlias=1
DynamicVariables=1
Hidden=1
Group=Top
 
[BG]
Meter=Shape
Shape=Rectangle 0,(#SCALE#*300),(#SCALE#*300),(#SCALE#*120), 0 | Extend Opt
Opt=Fill Color [BackgroundColor] | StrokeWidth 0
AntiAlias=1
DynamicVariables=1
Group=Bottom

[MeterProgress]
Meter=Bar
MeasureName=MeasureProgress
BarColor=[Accent2]
SolidColor=[BackgroundColor]
BarOrientation=Horizontal
X=0
Y=(#SCALE#*300)
W=(#SCALE#*300)
H=(#SCALE#*10)
DynamicVariables=1
Group=Bottom

[Indicataor]
Meter=Shape
X=(#SCALE#*[MeasureProgress]/100*300-(#SCALE#*10))
Y=(#SCALE#*295)
Shape=Rectangle 0,0,(#SCALE#*20),(#SCALE#*20),90 | Extend MyModifiers1
MyModifiers1=Fill Color [Accent1] | StrokeWidth 0
DynamicVariables=1
Group=Bottom

[Appearance]
StringCase=None
StringStyle=Normal
StringEffect=None
FontColor=[Accent2]
FontFace=Google Sans Medium
AntiAlias=1

[MeterTitle]
Meter=String
MeasureName=MeasureTrack
StringAlign=Center
MeterStyle=Appearance
FontSize=(#SCALE#*18)
X=(#SCALE#*150)
Y=(#SCALE#*320)
ClipString=2
ClipStringW=(#SCALE#*290)
ClipStringH=(#SCALE#*40)
UpdateDivider=2
DynamicVariables=1
Group=Bottom

[MeterArtistAlbum]
Meter=String
MeasureName=MeasureArtist
MeasureName2=MeasureAlbum
StringAlign=Center
MeterStyle=Appearance
StringStyle=Italic
FontSize=(#SCALE#*12)
X=(#SCALE#*150)
Y=(#SCALE#*354)
ClipString=2
ClipStringW=(#SCALE#*290)
ClipStringH=(#SCALE#*30)
UpdateDivider=2
DynamicVariables=1
Text=%1 • %2
Group=Bottom

[MeterCurrentPosition]
Meter=String
MeasureName=MeasureCurrentPosition
MeterStyle=Appearance
StringAlign=CenterCenter
FontSize=(#SCALE#*11)
X=(#SCALE#*60)
Y=(#SCALE#*398)
DynamicVariables=1
Group=Bottom

[Prev]
Meter=Shape
X=(#SCALE#*90)
Y=(#SCALE#*385)
Shape=Path Path1 | StrokeWidth 0 | Fill Color [Accent2] 
Shape2=Path Path2 | StrokeWidth 0 | Fill Color [Accent2] 
Shape3=Combine Shape1 | XOR Shape2
Path1=(#SCALE#*9), (#SCALE#*12) | LineTo (#SCALE#*24), (#SCALE#*3) | LineTo (#SCALE#*24), (#SCALE#*21) | LineTo (#SCALE#*9), (#SCALE#*12) | ClosePath 1
Path2=0, (#SCALE#*12) | LineTo (#SCALE#*13), (#SCALE#*20) | LineTo (#SCALE#*13), (#SCALE#*16.732) | LineTo (#SCALE#*5.112), (#SCALE#*12) | LineTo (#SCALE#*13), (#SCALE#*7.268) | LineTo (#SCALE#*13), (#SCALE#*4) | LineTo 0, (#SCALE#*12) | ClosePath 1
AntiAlias=1
UpdateDivider=2
DynamicVariables=1
Group=Bottom

[Prev1]
Meter=String
X=(#SCALE#*90)
Y=(#SCALE#*380)
SolidColor=0,0,0,1
W=(#SCALE#*25)
H=(#SCALE#*35)
LeftMouseUpAction=[!CommandMeasure MeasureState "Previous"]
AntiAlias=1
UpdateDivider=2
DynamicVariables=1
Group=Bottom

[Pause]
Meter=Shape
X=(#SCALE#*138)
Y=(#SCALE#*385)
Shape=Path Path1 | StrokeWidth 0 | Fill Color [Accent2] 
Shape2=Path Path2 | StrokeWidth 0 | Fill Color [Accent2]
Shape3=Combine Shape1 | XOR Shape2
Path1=(#SCALE#*10), (#SCALE#*24) | LineTo (#SCALE#*4), (#SCALE#*24) | LineTo (#SCALE#*4), 0 | LineTo (#SCALE#*10), 0 | LineTo (#SCALE#*10), (#SCALE#*24) | ClosePath 1
Path2=(#SCALE#*20), 0 | LineTo (#SCALE#*14), 0 | LineTo (#SCALE#*14), (#SCALE#*24) | LineTo (#SCALE#*20), (#SCALE#*24) | LineTo (#SCALE#*20), 0 | ClosePath 1
AntiAlias=1
UpdateDivider=2
DynamicVariables=1
Group=Bottom

[Pause1]
Meter=String
X=(#SCALE#*138)
Y=(#SCALE#*380)
SolidColor=0,0,0,1
W=(#SCALE#*25)
H=(#SCALE#*35)
LeftMouseUpAction=[!CommandMeasure MeasureState "PlayPause"]
AntiAlias=1
UpdateDivider=2
DynamicVariables=1
Group=Bottom

[Next]
Meter=Shape
X=(#SCALE#*186)
Y=(#SCALE#*385)
Shape=Path Path1 | StrokeWidth 0 | Fill Color [Accent2] 
Shape2=Path Path2 | StrokeWidth 0 | Fill Color [Accent2] 
Shape3=Combine Shape1 | XOR Shape2
Path1=0, (#SCALE#*21) | LineTo 0, (#SCALE#*3) | LineTo (#SCALE#*15), (#SCALE#*12) | LineTo 0, (#SCALE#*21) | ClosePath 1
Path2=(#SCALE#*11), (#SCALE#*4) | LineTo (#SCALE#*11), (#SCALE#*7.268) | LineTo (#SCALE#*18.888), (#SCALE#*12) | LineTo (#SCALE#*11), (#SCALE#*16.732) | LineTo (#SCALE#*11), (#SCALE#*20) | LineTo (#SCALE#*24), (#SCALE#*12) | LineTo (#SCALE#*11), (#SCALE#*4) | ClosePath 1
AntiAlias=1
UpdateDivider=2
DynamicVariables=1
Group=Bottom

[Next1]
Meter=String
X=(#SCALE#*186)
Y=(#SCALE#*380)
SolidColor=0,0,0,1
W=(#SCALE#*25)
H=(#SCALE#*35)
LeftMouseUpAction=[!CommandMeasure MeasureState "Next"]
AntiAlias=1
UpdateDivider=2
DynamicVariables=1
Group=Bottom

[MeterLength]
Meter=String
MeasureName=MeasureLength
MeterStyle=Appearance
StringAlign=CenterCenter
FontSize=(#SCALE#*11)
X=(#SCALE#*240)
Y=(#SCALE#*398)
UpdateDivider=2
DynamicVariables=1
Group=Bottom

[MeterBlurCover]
Meter=Image
ImageName=#@#\Images\Blur.png
ImageAlpha=100
X=0
Y=0
W=(#SCALE#*300)
H=(#SCALE#*300)
MaskImageName=#@#\Images\Mask1.png
AntiAlias=1
UpdateDivider=2
DynamicVariables=1
Group=Top
ToolTipTitle=[MeasureTrack]
ToolTipText=[MeasureArtist]

[Play]
Meter=Shape
Shape=Ellipse (#SCALE#*150),(#SCALE#*150),(#SCALE#*55) | Fill Color 0,0,0,0 | StrokeWidth (#SCALE#*8) | StrokeColor 30,215,96,255
Shape2=Path Play | StrokeWidth 0 | Fill Color 30,215,96,255
Play=(#SCALE#*130),(#SCALE#*115) | LineTo (#SCALE#*190.6217783),(#SCALE#*150) | LineTo (#SCALE#*130),(#SCALE#*185) | ClosePath 1
LeftMouseUpAction=[!CommandMeasure MeasureState "PlayPause"]
AntiAlias=1
UpdateDivider=-1
DynamicVariables=1
Group=Top
I hope im not doing this totally wrong.Any help would be appreciated, also im sorry for my english :)
You do not have the required permissions to view the files attached to this post.
goeway
Posts: 15
Joined: March 20th, 2019, 8:50 pm

Re: Plugin: Chameleon

Post by goeway »

itsfaketbh wrote: July 2nd, 2020, 8:55 am Hello,
its my first time writing here so im sorry if im not making sense.
First lets start with what i want to make. I want a color sensitive player that changes color based on its position on the screen. If not possible, then to atleast make the BG transparent.
Im using the spotifycontrol skin: https://www.deviantart.com/fuckyeahlucas/art/Spotify-Control-WORKING-Rainmeter-Skin-v4-3-594025385

I also modified the original .ini file to not display the album cover as that is not something i want.
i didnt know how to upload a picture so i hope its attached. The player is stuck with black and white colors and i dont know what to do now.

Code: Select all

[Rainmeter]
Update=100
AccurateText=1
SkinWidth=(#SCALE#*300)
SkinHeight=(#SCALE#*420)
RightMouseUpAction=[!SkinCustomMenu]
ContextTitle=Open Spotify
ContextAction=!Execute ["%userprofile%\AppData\Roaming\Spotify\spotify.exe"]
ContextTitle2=----
ContextAction2=[]
ContextTitle3=Smallest Skin Size (0.5)
ContextAction3=[!WriteKeyValue Variables SCALE "(#SCREENAREAWIDTH#*0.0005-0.5)"][!Refresh]
ContextTitle4=Smaller Skin Size (0.8)
ContextAction4=[!WriteKeyValue Variables SCALE "(#SCREENAREAWIDTH#*0.0005-0.2)"][!Refresh]
ContextTitle5=Normal Skin Size (1.0)
ContextAction5=[!WriteKeyValue Variables SCALE "(#SCREENAREAWIDTH#*0.0005)"][!Refresh]
ContextTitle6=Bigger Skin Size (1.2)
ContextAction6=[!WriteKeyValue Variables SCALE "(#SCREENAREAWIDTH#*0.0005+0.2)"][!Refresh]
ContextTitle7=Biggest Skin Size (1.5)
ContextAction7=[!WriteKeyValue Variables SCALE "(#SCREENAREAWIDTH#*0.0005+0.5)"][!Refresh]
ContextTitle8=----
ContextAction8=[]
ContextTitle9=Update Skin
ContextAction9=[!Refresh]
ContextTitle10=----
ContextAction10=[]
ContextTitle11=Open Rainmeter
ContextAction11=[!Manage]
ContextTitle12=Standard Context Menu
ContextAction12=[!SkinMenu]

[Metadata]
Name=Spotify Control
Author=fuckyeahlucas from DeviantART
Information=This skin is so minimal that no information is available. Sorry.
Version=4.3
License=Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International
 
[Variables]
SCALE=0.568

[CoverColor]
Measure=Plugin
Plugin=Chameleon
Type=Desktop
Format=Dec

[BackgroundColor]
Measure=Plugin
Plugin=Chameleon
Parent=CoverColor
Color=Background1


[Accent1]
Measure=Plugin
Plugin=Chameleon
Parent=CoverColor
Color=Foreground1


[Accent2]
Measure=Plugin
Plugin=Chameleon
Parent=CoverColor
Color=Foreground2
	
[MeasureState]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=State
IfCondition=MeasureState = 1
IfTrueAction=[!HideMeterGroup Top][!ShowMeterGroup Bottom]
IfCondition2=MeasureState = 2
IfTrueAction2=[!ShowMeterGroup Top][!HideMeterGroup Bottom]
IfCondition3=MeasureState = 0
IfTrueAction3=[!HideMeterGroup Top][!HideMeterGroup Bottom]
IfConditionMode=0
DynamicVariables=1

[MeasureArtist]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Artist

[MeasureAlbum]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Album

[MeasureTrack]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Title

[MeasureProgress]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Progress
Substitute="NaN":"1"
DynamicVariables=1

[MeasureCurrentPosition]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Position

[MeasureLength]
Measure=Plugin
Plugin=WebNowPlaying
PlayerType=Duration

[MeterCoverPlay]
Meter=Image
ImageName=[MeasureCover]
X=0
Y=0
W=(#SCALE#*300)
H=(#SCALE#*300)
MaskImageName=#@#\Images\Mask.png
LeftMouseUpAction=!Execute ["%userprofile%\AppData\Roaming\Spotify\spotify.exe"]
AntiAlias=1
DynamicVariables=1
Group=Bottom

[MeterCoverPause]
Meter=Image
ImageName=[MeasureCover]
X=0
Y=0
W=(#SCALE#*300)
H=(#SCALE#*300)
MaskImageName=#@#\Images\Mask1.png
Greyscale=1
AntiAlias=1
DynamicVariables=1
Hidden=1
Group=Top
 
[BG]
Meter=Shape
Shape=Rectangle 0,(#SCALE#*300),(#SCALE#*300),(#SCALE#*120), 0 | Extend Opt
Opt=Fill Color [BackgroundColor] | StrokeWidth 0
AntiAlias=1
DynamicVariables=1
Group=Bottom

[MeterProgress]
Meter=Bar
MeasureName=MeasureProgress
BarColor=[Accent2]
SolidColor=[BackgroundColor]
BarOrientation=Horizontal
X=0
Y=(#SCALE#*300)
W=(#SCALE#*300)
H=(#SCALE#*10)
DynamicVariables=1
Group=Bottom

[Indicataor]
Meter=Shape
X=(#SCALE#*[MeasureProgress]/100*300-(#SCALE#*10))
Y=(#SCALE#*295)
Shape=Rectangle 0,0,(#SCALE#*20),(#SCALE#*20),90 | Extend MyModifiers1
MyModifiers1=Fill Color [Accent1] | StrokeWidth 0
DynamicVariables=1
Group=Bottom

[Appearance]
StringCase=None
StringStyle=Normal
StringEffect=None
FontColor=[Accent2]
FontFace=Google Sans Medium
AntiAlias=1

[MeterTitle]
Meter=String
MeasureName=MeasureTrack
StringAlign=Center
MeterStyle=Appearance
FontSize=(#SCALE#*18)
X=(#SCALE#*150)
Y=(#SCALE#*320)
ClipString=2
ClipStringW=(#SCALE#*290)
ClipStringH=(#SCALE#*40)
UpdateDivider=2
DynamicVariables=1
Group=Bottom

[MeterArtistAlbum]
Meter=String
MeasureName=MeasureArtist
MeasureName2=MeasureAlbum
StringAlign=Center
MeterStyle=Appearance
StringStyle=Italic
FontSize=(#SCALE#*12)
X=(#SCALE#*150)
Y=(#SCALE#*354)
ClipString=2
ClipStringW=(#SCALE#*290)
ClipStringH=(#SCALE#*30)
UpdateDivider=2
DynamicVariables=1
Text=%1 • %2
Group=Bottom

[MeterCurrentPosition]
Meter=String
MeasureName=MeasureCurrentPosition
MeterStyle=Appearance
StringAlign=CenterCenter
FontSize=(#SCALE#*11)
X=(#SCALE#*60)
Y=(#SCALE#*398)
DynamicVariables=1
Group=Bottom

[Prev]
Meter=Shape
X=(#SCALE#*90)
Y=(#SCALE#*385)
Shape=Path Path1 | StrokeWidth 0 | Fill Color [Accent2] 
Shape2=Path Path2 | StrokeWidth 0 | Fill Color [Accent2] 
Shape3=Combine Shape1 | XOR Shape2
Path1=(#SCALE#*9), (#SCALE#*12) | LineTo (#SCALE#*24), (#SCALE#*3) | LineTo (#SCALE#*24), (#SCALE#*21) | LineTo (#SCALE#*9), (#SCALE#*12) | ClosePath 1
Path2=0, (#SCALE#*12) | LineTo (#SCALE#*13), (#SCALE#*20) | LineTo (#SCALE#*13), (#SCALE#*16.732) | LineTo (#SCALE#*5.112), (#SCALE#*12) | LineTo (#SCALE#*13), (#SCALE#*7.268) | LineTo (#SCALE#*13), (#SCALE#*4) | LineTo 0, (#SCALE#*12) | ClosePath 1
AntiAlias=1
UpdateDivider=2
DynamicVariables=1
Group=Bottom

[Prev1]
Meter=String
X=(#SCALE#*90)
Y=(#SCALE#*380)
SolidColor=0,0,0,1
W=(#SCALE#*25)
H=(#SCALE#*35)
LeftMouseUpAction=[!CommandMeasure MeasureState "Previous"]
AntiAlias=1
UpdateDivider=2
DynamicVariables=1
Group=Bottom

[Pause]
Meter=Shape
X=(#SCALE#*138)
Y=(#SCALE#*385)
Shape=Path Path1 | StrokeWidth 0 | Fill Color [Accent2] 
Shape2=Path Path2 | StrokeWidth 0 | Fill Color [Accent2]
Shape3=Combine Shape1 | XOR Shape2
Path1=(#SCALE#*10), (#SCALE#*24) | LineTo (#SCALE#*4), (#SCALE#*24) | LineTo (#SCALE#*4), 0 | LineTo (#SCALE#*10), 0 | LineTo (#SCALE#*10), (#SCALE#*24) | ClosePath 1
Path2=(#SCALE#*20), 0 | LineTo (#SCALE#*14), 0 | LineTo (#SCALE#*14), (#SCALE#*24) | LineTo (#SCALE#*20), (#SCALE#*24) | LineTo (#SCALE#*20), 0 | ClosePath 1
AntiAlias=1
UpdateDivider=2
DynamicVariables=1
Group=Bottom

[Pause1]
Meter=String
X=(#SCALE#*138)
Y=(#SCALE#*380)
SolidColor=0,0,0,1
W=(#SCALE#*25)
H=(#SCALE#*35)
LeftMouseUpAction=[!CommandMeasure MeasureState "PlayPause"]
AntiAlias=1
UpdateDivider=2
DynamicVariables=1
Group=Bottom

[Next]
Meter=Shape
X=(#SCALE#*186)
Y=(#SCALE#*385)
Shape=Path Path1 | StrokeWidth 0 | Fill Color [Accent2] 
Shape2=Path Path2 | StrokeWidth 0 | Fill Color [Accent2] 
Shape3=Combine Shape1 | XOR Shape2
Path1=0, (#SCALE#*21) | LineTo 0, (#SCALE#*3) | LineTo (#SCALE#*15), (#SCALE#*12) | LineTo 0, (#SCALE#*21) | ClosePath 1
Path2=(#SCALE#*11), (#SCALE#*4) | LineTo (#SCALE#*11), (#SCALE#*7.268) | LineTo (#SCALE#*18.888), (#SCALE#*12) | LineTo (#SCALE#*11), (#SCALE#*16.732) | LineTo (#SCALE#*11), (#SCALE#*20) | LineTo (#SCALE#*24), (#SCALE#*12) | LineTo (#SCALE#*11), (#SCALE#*4) | ClosePath 1
AntiAlias=1
UpdateDivider=2
DynamicVariables=1
Group=Bottom

[Next1]
Meter=String
X=(#SCALE#*186)
Y=(#SCALE#*380)
SolidColor=0,0,0,1
W=(#SCALE#*25)
H=(#SCALE#*35)
LeftMouseUpAction=[!CommandMeasure MeasureState "Next"]
AntiAlias=1
UpdateDivider=2
DynamicVariables=1
Group=Bottom

[MeterLength]
Meter=String
MeasureName=MeasureLength
MeterStyle=Appearance
StringAlign=CenterCenter
FontSize=(#SCALE#*11)
X=(#SCALE#*240)
Y=(#SCALE#*398)
UpdateDivider=2
DynamicVariables=1
Group=Bottom

[MeterBlurCover]
Meter=Image
ImageName=#@#\Images\Blur.png
ImageAlpha=100
X=0
Y=0
W=(#SCALE#*300)
H=(#SCALE#*300)
MaskImageName=#@#\Images\Mask1.png
AntiAlias=1
UpdateDivider=2
DynamicVariables=1
Group=Top
ToolTipTitle=[MeasureTrack]
ToolTipText=[MeasureArtist]

[Play]
Meter=Shape
Shape=Ellipse (#SCALE#*150),(#SCALE#*150),(#SCALE#*55) | Fill Color 0,0,0,0 | StrokeWidth (#SCALE#*8) | StrokeColor 30,215,96,255
Shape2=Path Play | StrokeWidth 0 | Fill Color 30,215,96,255
Play=(#SCALE#*130),(#SCALE#*115) | LineTo (#SCALE#*190.6217783),(#SCALE#*150) | LineTo (#SCALE#*130),(#SCALE#*185) | ClosePath 1
LeftMouseUpAction=[!CommandMeasure MeasureState "PlayPause"]
AntiAlias=1
UpdateDivider=-1
DynamicVariables=1
Group=Top
I hope im not doing this totally wrong.Any help would be appreciated, also im sorry for my english :)

Code: Select all

......

[CoverColor]
Measure=Plugin
Plugin=Chameleon
Type=Desktop
CropX=#CurrentConfigX#
CropY=#CurrentConfigY#
CropW=#CurrentConfigWidth#
CropH=#CurrentConfigHeight#
;CropDesktop=0
DynamicVariables=1

[BackgroundColor]
Measure=Plugin
Plugin=Chameleon
Parent=CoverColor
Color=Background1
Format=Dec

[Accent1]
Measure=Plugin
Plugin=Chameleon
Parent=CoverColor
Color=Foreground1
Format=Dec

[Accent2]
Measure=Plugin
Plugin=Chameleon
Parent=CoverColor
Color=Foreground2
Format=Dec

......
User avatar
eclectic-tech
Rainmeter Sage
Posts: 4144
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Plugin: Chameleon

Post by eclectic-tech »

Besides goeway's suggestion to add cropping to the parent measure, you might want to consider using: ContextAwareColors=1 to the [CoverColor] measure so it responds to colors under the current skin position skin.

Code: Select all

[CoverColor]
Measure=Plugin
Plugin=Chameleon
Type=Desktop
CropX=#CurrentConfigX#
CropY=#CurrentConfigY#
CropW=#CurrentConfigWidth#
CropH=#CurrentConfigHeight#
;CropDesktop=0
DynamicVariables=1
ContextAwareColors=1
The code you posted looks fine, and should have changed the colors when you selected a new desktop background image.
Are you seeing any error messages in the Log?
itsfaketbh
Posts: 12
Joined: July 2nd, 2020, 8:41 am

Re: Plugin: Chameleon

Post by itsfaketbh »

eclectic-tech wrote: July 3rd, 2020, 12:37 am Besides goeway's suggestion to add cropping to the parent measure, you might want to consider using: ContextAwareColors=1 to the [CoverColor] measure so it responds to colors under the current skin position skin.

Code: Select all

[CoverColor]
Measure=Plugin
Plugin=Chameleon
Type=Desktop
CropX=#CurrentConfigX#
CropY=#CurrentConfigY#
CropW=#CurrentConfigWidth#
CropH=#CurrentConfigHeight#
;CropDesktop=0
DynamicVariables=1
ContextAwareColors=1
The code you posted looks fine, and should have changed the colors when you selected a new desktop background image.
Are you seeing any error messages in the Log?
Okay, i changed the code and it crashed?Or something happened because everything on screen stoped responding and i had to restart the screengrab before restart is below.
After restart this is what the log shows:
Chameleon: Could not get handle on C:\Users\User\AppData\Roaming\Rainmeter\Layouts\may 17\Wallpaper.bmp
You do not have the required permissions to view the files attached to this post.