[Solved] Label command for artist thumb
#1
Dear All

I have a question about pulling artwork into a skin.

For music there are basically 3 primary images, the artist thumb (folder.jpg), the artist fanart and the album cover. When I look on the wiki skinning manual at additional items there are only 2 options available when music is playing:

MusicPlayer.Cover, which pulls in the album cover; and
MusicPlayer.Property(Fanart_Image) which surprise, surprise pulls in the fanart.

Although there are other listitem options those don't seem to work in playlists or if you move focus away from the list. So. I'm struggling to work out how you would pull in the artist thumb to a page, for instance in designing a slideshow overlay, when playing music.

Thanks

----
BTW - I tried Player.Art(thumb) and that's pulling in the album cover.
Reply
#2
It would be same as for artists logo.png, not tested but i think should work

Here an example:

Place 2 buttons for specifying your music path in skin settings:


PHP Code:
<control type="radiobutton" id="1099">
                    <
description>Music Path for Artist Thumbs</description>
                    <include>
DiffuseButtonsSettings</include>
                    <
label>41176</label>
                    <
onclick>Skin.ToggleSetting(MusicPath)</onclick>
                    <
selected>Skin.HasSetting(MusicPath)</selected>
                </
control>
                <
control type="button" id="1100">
                    <
description>Music Artist Thumbs Set Path</description>
                    <include>
DiffuseButtonsSettings</include>
                    <
label>$LOCALIZE[41093] [COLOR=lightgrey]$INFO[Skin.String(Music_Folder_Path)][/COLOR]</label>
                    <
onclick>Skin.SetPath(Music_Folder_Path)</onclick>
                    <
visible>Skin.HasSetting(MusicPath)</visible>
                </
control

And here an example to show the thumb while playing music:


PHP Code:
<control type="image">
                <
description>Logo image</description>
                <
posx>890</posx>
                <
posy>315</posy>
                <
width>200</width>
                <
height>200</height
                <
fadetime>200</fadetime>
                <
texture>$INFO[Skin.String(Music_Folder_Path)]$INFO[MusicPlayer.Artist]/folder.jpg</texture>
                <
aspectratio scalediffuse="false">keep</aspectratio
                </
control
Reply
#3
Thanks Butchabay,

Sorry if this sounds really stupid, but if I have a main folder named Music with all the artists in folders beneath, if I set the path in skin settings to point at Music will it then automatically work out which artist is playing and go to the correct sub-folder to pull in the appropriate folder.jpg.
Reply
#4
Yes, if you have organized your music this way it should work.

Music ( Main folder )
- Artist ( Artist Folder )
-- folder.jpg ( inside Artist Folder )
Reply
#5
Thanks, I'll do some editing and see if it works.
Reply
#6
Butchabay - you're a megastar. This is doing exactly what I wanted, and what I've been wracking my brain over. I've tested it with a smart playlist and sure enough all three images now change as the track and artist/composer changes.

I honestly can't thank you enough.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
[Solved] Label command for artist thumb0