Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: foo_uie_single_column_playlist (Read 736595 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

foo_uie_single_column_playlist

Reply #850
I use this line which i modified from some1 else. It currently takes up tracks 1-3 of my playlist can some1 tell me which bit to change to take up more eg 5.

Better yet can some1 break it down so i could understand it.

$imageabs2(60,60,,,60,60,17,$if($strcmp(%tracknumber%,01),3,$add(25,$mul(-22,%tracknumber%))),$replace(%path%,%filename_ext%,folder.jpg),)

foo_uie_single_column_playlist

Reply #851
I use this line which i modified from some1 else. It currently takes up tracks 1-3 of my playlist can some1 tell me which bit to change to take up more eg 5.

Better yet can some1 break it down so i could understand it.

$imageabs2(60,60,,,60,60,17,$if($strcmp(%tracknumber%,01),3,$add(25,$mul(-22,%tracknumber%))),$replace(%path%,%filename_ext%,folder.jpg),)

All those values are pixels:

*60,60 = width,heigth of the bounding box of the image
*the missing " , " = would be the left and top offset of the image inside that box
*60,60 = width and heigth displayed
*17,$if($strcmp(%tracknumber%,01),3,$add(25,$mul(-22,%tracknumber%))) = x-position, y-position    (absolute, referring to the row)

[blockquote]$if($strcmp(%tracknumber%,01),3,$add(25,$mul(-22,%tracknumber%))) = if(tracknumber=1), then y-pos= 3, else y-pos= 25 + ((-22)x(tracknumber)).
So if tracknumber is 1, then y-pos = 3
                          is 2, then y-pos = 25+(-22x2) = -19
                          is 3, then y-pos = 25+(-22x3) = -41
so, x-pos is constant in every track (17 pixels), and y-pos depends on the track number ( if this wasn't so, each row would display the top-piece of the image. repeating it 3 times..like this, each piece of the image starts 22 pixels (which I assume is your row heigth)  more to the top than in the previous row, making the 3 pieces fit togethershowing the complete image.[/blockquote]

*$replace(%path%,%filename_ext%,folder.jpg) = the path of your image

I hope I explained it fine, it's kind of hard in english.. 

sune

foo_uie_single_column_playlist

Reply #852
I'm having a problem using multiple singlecolumn panels. If I choose a different playlist in both panels, and double-click an item to start playing, it only works in one panel. If I doubleclick in the other panel it would start playing (Edit) the selected track from the other playlist  I'd be glad if I could just swap the panels, so the one working is actually the one I wanted to use LOL

Another edit: I think I was able to "swap" the active panel by creating a new playlist... But still   
Can't wait for a HD-AAC encoder :P

foo_uie_single_column_playlist

Reply #853

I use this line which i modified from some1 else. It currently takes up tracks 1-3 of my playlist can some1 tell me which bit to change to take up more eg 5.

Better yet can some1 break it down so i could understand it.

$imageabs2(60,60,,,60,60,17,$if($strcmp(%tracknumber%,01),3,$add(25,$mul(-22,%tracknumber%))),$replace(%path%,%filename_ext%,folder.jpg),)

All those values are pixels:

*60,60 = width,heigth of the bounding box of the image
*the missing " , " = would be the left and top offset of the image inside that box
*60,60 = width and heigth displayed
*17,$if($strcmp(%tracknumber%,01),3,$add(25,$mul(-22,%tracknumber%))) = x-position, y-position    (absolute, referring to the row)

[blockquote]$if($strcmp(%tracknumber%,01),3,$add(25,$mul(-22,%tracknumber%))) = if(tracknumber=1), then y-pos= 3, else y-pos= 25 + ((-22)x(tracknumber)).
So if tracknumber is 1, then y-pos = 3
                          is 2, then y-pos = 25+(-22x2) = -19
                          is 3, then y-pos = 25+(-22x3) = -41
so, x-pos is constant in every track (17 pixels), and y-pos depends on the track number ( if this wasn't so, each row would display the top-piece of the image. repeating it 3 times..like this, each piece of the image starts 22 pixels (which I assume is your row heigth)  more to the top than in the previous row, making the 3 pieces fit togethershowing the complete image.[/blockquote]

*$replace(%path%,%filename_ext%,folder.jpg) = the path of your image

I hope I explained it fine, it's kind of hard in english.. 

sune


Yeh i think i get it.  One thing i dont understand (track info mod) is that i have my album art displayed using this line:

$imageabs2(300,300,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,4)),,%height%,150,80,$replace(%path%,%filename_ext%,folder.jpg),)

I wanted to change the picture so i though i could just change the $replace.... to:

$imageabs2(300,300,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,4)),,%height%,150,80,images\vista1\002.png,)

yet it displays nothing

foo_uie_single_column_playlist

Reply #854
Yeh i think i get it.  One thing i dont understand (track info mod) is that i have my album art displayed using this line:

$imageabs2(300,300,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,4)),,%height%,150,80,$replace(%path%,%filename_ext%,folder.jpg),)

I wanted to change the picture so i though i could just change the $replace.... to:

$imageabs2(300,300,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,4)),,%height%,150,80,images\vista1\002.png,)

yet it displays nothing


When you use $imageabs2 you need to put the full path of the image
Try this code:

$imageabs2(300,300,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,4)),,%height%,150,80,C:\Program files\foobar2000\images\vista1\002.png,)

(or replace C:\Program files\foobar2000\ with the right folder)

 

foo_uie_single_column_playlist

Reply #855
I'm having a problem using multiple singlecolumn panels. If I choose a different playlist in both panels, and double-click an item to start playing, it only works in one panel. If I doubleclick in the other panel it would start playing (Edit) the selected track from the other playlist  I'd be glad if I could just swap the panels, so the one working is actually the one I wanted to use LOL

Another edit: I think I was able to "swap" the active panel by creating a new playlist... But still   


are you using the last version from yesterday?


foo_uie_single_column_playlist

Reply #857
@terrestrial

Will you add $button function to this component?
I'm waiting for it.

Regards.

foo_uie_single_column_playlist

Reply #858
With this layout it is not really possible to use the foo_uie_quicksearch plugin because it always searches the current active playlist


no, active and playing playlists are different. in any case I've switched things around for the new version to make things work better.

Thanks for the quick response, foo_uie_quicksearch is working as expected now.

foo_uie_single_column_playlist

Reply #859

Yeh i think i get it.  One thing i dont understand (track info mod) is that i have my album art displayed using this line:

$imageabs2(300,300,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,4)),,%height%,150,80,$replace(%path%,%filename_ext%,folder.jpg),)

I wanted to change the picture so i though i could just change the $replace.... to:

$imageabs2(300,300,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,4)),,%height%,150,80,images\vista1\002.png,)

yet it displays nothing


When you use $imageabs2 you need to put the full path of the image
Try this code:

$imageabs2(300,300,,$sub($mul(%_height%,%_itemindex%),$add(%_height%,4)),,%height%,150,80,C:\Program files\foobar2000\images\vista1\002.png,)

(or replace C:\Program files\foobar2000\ with the right folder)


ahh i get it.  But if i want to use imageabs2 to display a image in my foobar (USB drive) how would i do that (as in the drive letter will vary depending on PC) is there a %path% for foobar?

many thanks

foo_uie_single_column_playlist

Reply #860
I can't display any images, I tried $imageabs(0,0,images\somerandomimage.png,) (I placed images\somerandomimage.png in the foobar-directory) but no image. 
Nobody else seem to have this problem . No error, no crash or something like that, just nothing...
I have no idea what to do. No copy-n-past code posted previously in this thread works either, so I don't think its a problem with my code. Do I need to get some other plugin for the imageabs function or something like that?

The whole code:
Code: [Select]
$font(calibri,10,bold,)
$alignabs(10,9,200,50,,)
%artist%
$imageabs(0,0,images\somerandomimage.png,)


I am having the same problem. Have you fix it?

foo_uie_single_column_playlist

Reply #861

I can't display any images, I tried $imageabs(0,0,images\somerandomimage.png,) (I placed images\somerandomimage.png in the foobar-directory) but no image. 
Nobody else seem to have this problem . No error, no crash or something like that, just nothing...
I have no idea what to do. No copy-n-past code posted previously in this thread works either, so I don't think its a problem with my code. Do I need to get some other plugin for the imageabs function or something like that?

The whole code:
Code: [Select]
$font(calibri,10,bold,)
$alignabs(10,9,200,50,,)
%artist%
$imageabs(0,0,images\somerandomimage.png,)


I am having the same problem. Have you fix it?


for $imageabs the image must be in C:\Documents and settings\YOURNAME\Application data\foobar2000, not in C:\Program files\Foobar2000. Maybe you put the images in the wrong folder. Check it.

foo_uie_single_column_playlist

Reply #862
Thanks for the update Terrestrial, love the wildcard and fileexist options.

How do you implement the horizontal and vertical align options?
edit: I don't need this now thanks to the NOKEEPASPECT (thats no keep aspect), took me a while to work out what that meant

Can't wait to see these in Track Info Panel.

foo_uie_single_column_playlist

Reply #863
Ok, I actually have a setup from Neowin working. I had the images in the foobar program directory instead of my application data directory. The only thing now is that I need to find a way to not display a header or album art when there is less than, say, 4 tracks in the album. I am sorting by %directoryname%. Unfortunately, because I don't have all full albums, the "totaltracks" variable tends to be a bit unreliable. I need to find someway to count it by files in the directory or something of the sort. Can you guys perhaps think of something or a variable that I could use that I simply don't know of?

foo_uie_single_column_playlist

Reply #864
I'm in need of some troubleshooting help. 

I'm using a very slightly modified version of tool++'s single column style and I'm having some trouble with the placement of album art. 

The config uses this line to display the art:

$imageabs2(90,90,,,,,0,$mul($sub(%tracknumber%,1),-15),$replace(%path%,%filename_ext%,)folder.jpg,)

As far as I know, the "90,90" should be resizing the image, but then why does this occur (the Yeah Yeah Yeahs album cover):



Thanks!

foo_uie_single_column_playlist

Reply #865
I'm in need of some troubleshooting help. 

I'm using a very slightly modified version of tool++'s single column style and I'm having some trouble with the placement of album art. 

The config uses this line to display the art:

$imageabs2(90,90,,,,,0,$mul($sub(%tracknumber%,1),-15),$replace(%path%,%filename_ext%,)folder.jpg,)

As far as I know, the "90,90" should be resizing the image, but then why does this occur (the Yeah Yeah Yeahs album cover):

Thanks!


Because the size of the image is not an even aspect ratio. Resize the image to say 300x300

foo_uie_single_column_playlist

Reply #866
Because the size of the image is not an even aspect ratio. Resize the image to say 300x300


Apparently it does matter that it is an even aspect ratio, but then why do we define both the height and width of a picture?  Aren't the first two values in $imageabs2 supposed to resize the picture to the values I want?

foo_uie_single_column_playlist

Reply #867

Because the size of the image is not an even aspect ratio. Resize the image to say 300x300


Apparently it does matter that it is an even aspect ratio, but then why do we define both the height and width of a picture?  Aren't the first two values in $imageabs2 supposed to resize the picture to the values I want?


Because thats how the plugin handles images. It will resize an image to what you specify but it cannot manipulate the aspect ratio.

foo_uie_single_column_playlist

Reply #868
Because thats how the plugin handles images. It will resize an image to what you specify but it cannot manipulate the aspect ratio.


Ahh ok, thanks for the answer.  Much appreciated!


foo_uie_single_column_playlist

Reply #870
Bug or my fault?!

I'm using the latest version (foo_uie_single_column_playlist (2006-10-31)) in my "Compact-Mode-View" (columns design). In "Full-Mode-View" i use the columns playlist. Switching between these two modes is provided by a button. So far i had no problems with this configuration.

But with the latest update of SCPL i get in trouble when switching from Full to Compact View:
SCPL shows the active playlist, but every song is shown like a group (based on my group config).
When i switch to another playlist, it is shown correctly. And when i switch back to the active playlist it is shown correctly now, too.

Any ideas?!

foo_uie_single_column_playlist

Reply #871
Bug or my fault?!

I'm using the latest version (foo_uie_single_column_playlist (2006-10-31)) in my "Compact-Mode-View" (columns design). In "Full-Mode-View" i use the columns playlist. Switching between these two modes is provided by a button. So far i had no problems with this configuration.

But with the latest update of SCPL i get in trouble when switching from Full to Compact View:
SCPL shows the active playlist, but every song is shown like a group (based on my group config).
When i switch to another playlist, it is shown correctly. And when i switch back to the active playlist it is shown correctly now, too.

Any ideas?!

I have the same problem as you. For me the problem also appears while changing the layout. And like you everything s ok when i change playlist.



foo_uie_single_column_playlist

Reply #874
It must be the same bug i posted on side 32 of this thread. It occurs when i use tabs (not layouts like you). Notice also the other bug i mentioned.

EDIT: Sorry! No it isn't the same. can somebody confirm what occured to me?