Playlist and selected item

Hi,

Is there any way to get, in mAirlist script, the selected item in the playlist ? i.e. the one where I’d clicked and is highlighted…?

And how can I load a player in the cartwall ?

I manage to get the player, but when I use “Open” with a playlistItem, the player denied to be loaded with the item…

Where is the problem into this code :

Player_A := Engine.GetCartwallControl.GetPlayerControl(0); Player_A.Open(CurrentPlaylist.GetItem(1));

I try to design a script that load the current selected playlistItem into a player in the cartwall… and it’s quite difficult… :frowning:

Thanks…

It’s not possible to retrieve the currently selected item. That’s because, currently, scripts cannot access the GUI. (mAirList is designed along the lines of the model/view/controller concept, and scripts have only access to the model+controller part so far.)

Your code fragment works fine here - perhaps you can post the complete script?