More > JRiver Media Center 32 for Windows
Custom Tooltips/TheaterView Screens
lepa:
I map image path and artist name to a list (__ as separator). Of course you could parse artist from created image path later also but i find this more convenient. It is using IsMissing() so local folder for images is preferred so there won't be any hickups
--- Code: ---Save(E:\.MC Images\Music\Artists\Square\, v_Square)/
Save(ListLimit(ListShuffle(ListClean(ListMix(If(IsMissing([v_Square][L1].jpg),,[v_Square][L1].jpg__[L1]),8,[AMG Artist SimilarTo]),3)),5), v_similar)
--- End code ---
Then I parse v_similar map with listmix() to display images and second listmix() to ouput artist names using mono font on second row
SkGe:
@Lepa. I'm trying to understand your expression but I don't think to understand everything there. Can you explain to mere human being :). So far I try to follow your steps with my fields but nothing.
That code is on a field or smartlist? What v_square mean?
Hopefully you will give me a hand with this.
Thanks
lepa:
v_square is just variable where i save file path for my square formatted artist images.
Path is assigned to it in the first line. I use is so actual expression where it is used is easier to read and also changing path is easier as it is separated from the longish expression.
Second Line is where I collect all the artist images which are similar to artist selected. Result i.e. artist image paths is saved to variable v_similar again so it is easier to user later when outputting images to screen
--- Code: ---ListMix(If(IsMissing([v_Square][L1].jpg),,[v_Square][L1].jpg__[L1]),8,[AMG Artist SimilarTo]
--- End code ---
Parse through [AMG Artist SimilarTo] list and try to find artist image for every list item. If image is found then get filename for it and add artist name after it as sub list using __ as sub list separator. So this should return you something like
--- Code: ---E:\.MC Images\Music\Artists\Square\The Beatles.jpg__The Beatles;E:\.MC Images\Music\Artists\Square\Bob Dylan.jpg__Bob Dylan
--- End code ---
For the result I do ListClean to remove any empty items from the list and then ListLimit to 5 and save the end result to v_similar variable which now holds 0-5 Artist image path__Artist items
Then you can use v_similar in the next ListMix to output actual images to screen:
--- Code: ---ListMix(<img src"ListITem([L1],0,__)">,8,[v_similar])
--- End code ---
and under it you can print artist names yet another list mix. Repeat x there to help you align the text. You can dim it later or use space instead of x when you got your alignment right. I would also do v_imagewidth variable (- length of artist name) to easily change number there and then see the result and change the value again....and again....again
--- Code: ---Save(30, v_imagewidth)/
ListMix(ListITem([L1],1,__)Repeat(x,Math([v_imagewidth] - Length([L1]))),8,[v_similar])
--- End code ---
As said you need to use mono font so you can at least theoritically ;D align text with images and also image width should be static. (that's why I'm using square images)
SkGe:
@Lepa. If you can have some time to talk and help me on this, I am looking at this and still try to figure out to where I have to start. Thank you for explanation but you lost me somewhere on the line... :)
lepa:
If you could share what you have it is I guess easier to follow when you are doing your own thing. So if you have e.g part where you print out images. Or if you don't have that then if you share the path for your artist images we can start working on those. Also if you don't have zelda, you should get it.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version