Kodi Community Forum

Full Version: One icon frame, two animations?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Quick question: I have an icon panel with two different frames, one of which is supposed to replace the other after a brief delay. I've got the replacement frame working (in that it fades in after the specified time) but the original one won't fade out. I'm assuming this is because I can't get away with having both a zoom and fade animation assigned to a single control.

I tried containing the control in a group but then it didn't appear at all. I'm assuming you can't use groups within focusedlayout tags.

Here's the offending code:

PHP Code:
    <focusedlayout height="143" width="101">

              <
control type="image">

                  <
posx>10</posx>

                  <
posy>10</posy>

                  <
width>101</width>

                  <
height>143</height>

                  <
info>ListItem.Thumb</info>

                  <
texture>defaulticonphoto.png</texture>

                  <
aspectratio aligny="center">scale</aspectratio>

                  <
animation effect="zoom" end="-12,-20,144,204" time="200">Focus</animation>

              </
control>
              <
control type="image">

                  <
posx>0</posx>

                  <
posy>0</posy>

                  <
width>121</width>

                  <
height>163</height>

                  <
texture>photowallframe.png</texture>
                  <
animation effect="zoom" end="-32,-46,184,258" time="200">Focus</animation>
                  <
animation effect="fade" start="100" end="0" time="200" delay="4000">Visible</animation>
              </
control>
              <
control type="image">

                  <
posx>-32</posx>

                  <
posy>-46</posy>

                  <
width>392</width>

                  <
height>258</height>

                  <
texture>photowallframefull.png</texture>

                  <
animation effect="fade" end="100" time="200" delay="4000">Focus</animation>

              </
control>

         </
focusedlayout
The visibility state of the control hasn't changed so it won't trigger it.

Just have a multiple anim using:

<animation type="focus">
<effect type="zoom" blah />
<effect type="fade" blah />
</animation>

See the online manual for the exact syntax.

And no, groups don't work within lists.

Cheers,
Jonathan
Is the multiple anims feature supported in the Linux build? If so, when was it added? I ask because it doesn't seem to be working here.
It should be, yes. The commit to trunk was here:

http://xbmc.svn.sourceforge.net/viewvc/x...sion=11114

The commit to branch would have been the next merge.
I tested multiple anims recently (Linux) and they seemed to work. Are they not working as expected or are they not working at all?
Not at all. Here's the code:

PHP Code:
        <control type="image">

                  <
posx>0</posx>

                  <
posy>0</posy>

                  <
width>121</width>

                  <
height>163</height>

                  <
texture>photowallframe.png</texture>
                  <
animation type="focus">
                <
effect type="zoom" end="-32,-46,184,258" time="200" />
                    <
effect type="fade" end="0" time="200" delay="4000" />
                  </
animation>
              </
control
If I take one of the effect strings out but leave the rest of the code unchanged, it'll play the one remaining animation fine. But when I put two in it plays neither.
Never mind - fixed it. I needed a start opacity for the fade anim.