View Full Version : Referencing GAC+ results without using <LoopIndex>
wtf
January 15th, 2006, 05:30 PM
Is it possible to reference GAC+ results in button text like
{MP.GAC.Items[PNIndex].Name}
where PNIndex is an NR variable? That syntax didn't seem to work but I was able to set individual NR variables in lua to the GAC values and then display those NR variables. However, this didn't work for the .Image variable.
Ben S
January 15th, 2006, 06:07 PM
It's not currently possible to do this, unfortunately.
Can you explain what you're trying to do, and I can see if it's something we can introduce in the new version?
wtf
January 15th, 2006, 06:38 PM
Actually, Ben, I think the easiest thing for me to do is to make another GAC request to get the specific song's info. I am displaying a piece of the playlist as a group of entries and highlighting the currently-playing song. Any entry can be selected, which pops up a window of info and options. I was trying to display that entry's cover (from the previous GAC request) in this window.
The cover art isn't that important anyway - what I want to have is options for 'play' (which works), but also 'remove', 'set rating', and possibly 'move up'/'move down' (swap 2 playlist items). But I think these need to be handled by MediaBridge (along with 'Clear Playlist'). At least I haven't thought of a good way to do these yet.
Ben S
January 18th, 2006, 05:18 PM
Actually, Ben, I think the easiest thing for me to do is to make another GAC request to get the specific song's info. I am displaying a piece of the playlist as a group of entries and highlighting the currently-playing song. Any entry can be selected, which pops up a window of info and options. I was trying to display that entry's cover (from the previous GAC request) in this window.
You might actually want to use GAI for this (Get Album Info). Are you using the GAC.lua object? If so ...
[code]
gac:GetInformation(<LoopIndex>,'MP.AI') would load details of the album into MP.AI.[whatever] variables. There would be an MP.AI.AlbumCover with the album cover.
The cover art isn't that important anyway - what I want to have is options for 'play' (which works), but also 'remove', 'set rating', and possibly 'move up'/'move down' (swap 2 playlist items). But I think these need to be handled by MediaBridge (along with 'Clear Playlist'). At least I haven't thought of a good way to do these yet.
Yes, everything but play require changes. These are some things others have asked for, so we may move to support them in the future (soon?).
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.