What I would suggest, is first create a radiobutton to turn the effect on/off by toggling a skin setting. Then, add animation effects to the music visualization window that use the skin setting as a condition. Here's a quick and dirty I did on Aeon Nox 7.0.1
1. Edit file custom_1120_OSDSettings.xml
find the existing radiobutton "90202" -- it has code beginning <control ..... and ending with </control>
Insert a new control after this one :
Code:
<control type="radiobutton" id="90205">
<description>Background Button</description>
<width>1138</width>
<label>$LOCALIZE[12379]</label>
<onclick>Skin.ToggleSetting(VisualizationFanartPanScan)</onclick>
<selected>Skin.HasSetting(VisualizationFanartPanScan)</selected>
</control>
so with this when music is playing you open the music OSD, go to settings and you see this new radiobutton.
2. Edit file Music Visualisation.xml
find the existing multiimage "90300". In this control scroll down a few lines and you see an <animation> ...</animation>. Immediately after that line, add this new annimation:
Code:
<animation effect="zoom" start="110" end="130" center="auto" time="10000" tween="cubic" easing="inout" pulse="true" condition="Skin.HasSetting(VisualizationFanartPanScan) + Window.IsActive(visualisation)">Conditional</animation>
<animation effect="slide" start="-15,-15" end="15,15" time="5000" tween="cubic" easing="inout" pulse="true" condition="Skin.HasSetting(VisualizationFanartPanScan) + Window.IsActive(visualisation)">Conditional</animation>
You see the first animation does the "zoom" and the second one the "panning". You can tweak the parameters for it (see the Kodi wiki on skin manual for animation).
This is to get you started. If you need help recommend asking in the skin support for Nox forum, as I have hard enough time keeping track of Aeon MQ5 Mods.
scott s.
.