Kodi Community Forum

Full Version: Help with non-working animation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

can anyone explain to me why this control doesn't get animated? It just stays stationary at the "end" position.

Code:
    <control type="group" id="3000">
            <posx>250</posx>
            <posy>120</posy>
            <camera x="438.5252" y="10" />
            <include>contentpanelslide</include>
            <visible>Control.IsVisible(57) + !Control.IsVisible(3001)  + !Control.IsVisible(3002)</visible>
            <control type="group">
                <posx>0</posx>
                <posy>0</posy>
                <width>70</width>
                <visible>Control.IsVisible(3000)</visible>
                <animation type="Visible">
                    <effect type="rotatey" center="0" start="-11.25" end="11.25" time="400"/> <----this doesn't animate
                    <effect type="rotatey" center="188.5252" start="-11.25" end="-11.25" time="0" />
                </animation>
                    <control type="image">
                        <posx>1</posx>
                        <posy>0</posy>
                        <width>70</width>
                        <height>130</height>
                        <keepaspectratio>true</keepaspectratio>
                        <info>Container.ListItem(-3).Icon</info>
                    </control>
            </control>
    ...


/regards Tomas
As a guess, it'll be due to the fact that the control's visibility never changes. It only ever gets rendered (and thus only has a chance to check for visibility changes) whenever the group gets rendered. As the group doesn't render when it's hidden, you never have the animation triggered.

Not sure what the solution is without knowing more about what you are trying to achieve.

Cheers,
Jonathan