PDA

View Full Version : Visualization as background image


NewNole2001
2005-09-12, 17:20
is it possible to use xbmc's visualization as a background image in a script? i'm working on a major update of the xm radio online script that's floating around, and would like to make the background for the window when music is playing be the visualization. is this possible?

edit:
i found this builtin in the xbmc online manual. i'm at work right now, so i can't test this, but would this work?

#2006 is windowid of visualization
executebuiltin('xbmc.activatewindow(2006)')

and then add my controls to this window. would this work? has anybody tried this?

Nuka1195
2005-09-12, 19:57
yes, that should work. your music will have to be playing first obviously. i did this in poker timer / poker timer ii, you just create a windowdialog instead of a window.

and depending how you 'import xbmc', the command might need to be this:

xbmc.executebuiltin('xbmc.activatewindow(2006)')

NewNole2001
2005-09-12, 21:40
i looked at your poker timer ii script. i have a question about it. i read that using an infinite while loop is much more processor intensive than just using .domodal() . since you use ~.domodal(), do you even need to have the while loop? i'm at work write now so i can't test this to answer my own question. but i would think you wouldn't based on what i've read.
i will run your script when i get home and see if does something like what i want mine to do. thanks for the advice.

Nuka1195
2005-09-13, 00:13
i did that so, you could resize the dialog while the script is running.

any suggestion of a better way would be appreciated. :)

NewNole2001
2005-09-13, 02:23
awesome, changing the window to a windowdialog worked :thumbsup: