Help with non-working animation
#1
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
Reply
#2
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
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply

Logout Mark Read Team Forum Stats Members Help
Help with non-working animation0