Visualization as background image
#1
Sad 
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?
Reply
#2
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)')
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#3
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.
Reply
#4
i did that so, you could resize the dialog while the script is running.

any suggestion of a better way would be appreciated. Smile
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#5
awesome, changing the window to a windowdialog worked :thumbsup:
Reply

Logout Mark Read Team Forum Stats Members Help
Visualization as background image0