Strange animation behaviour
#1
Hi,

Ok, say i have an animation include set in includes.xml that contains 'WindowOpen', 'WindowClose', 'Visible', and 'Hidden' animations.

PHP Code:
    <include name="Animation Test">        
        <
animation type="WindowOpen" >
            <
effect type="fade" time="300" delay="400" start="0" end="100" />
        </
animation>        
        <
animation type="Visible" >
            <
effect type="fade" time="300" delay="300" start="0" end="100" />
        </
animation>                
        <
animation type="Hidden" >
            <
effect type="fade" time="300" delay="100"  start="100" end="0" />
        </
animation>        
        <
animation type="WindowClose" >
            <
effect type="fade" time="300" start="100" end="0" />
        </
animation>            
    </include> 


Say i then also have an image include in includes.xml that i refer back to from other xml's.

PHP Code:
    <include name="Background Test">
        <
control type="image">
            <include>
Dimensions Fullscreen</include>                
            <
texture>common/background_bottom.png</texture>    
            <include>
Animation Test</include>                    
        </
control>            
    </include> 


What i'm finding is if i include the animation include set in that image include (as seen in above image code), only the 'WindowOpen' and 'WindowClose' animations work.

To get the 'Visible' and 'Hidden' to work, i also have to have the animation include set coded (in a group containing the image include and the animation include) in the xml i'm working on.

PHP Code:
        <control type="group">        
            <include>
Background Test</include>    
            <include>
Animation Test</include>                        
        </
control


So effectively i have to have the animation set refered to twice, once in includes.xml and again in the xml in working on, to get all 4 animations to work.

I would have thought it would only be needed once on the image include in includes.xml? Is this normal behaviour or a bug?

Cheers
Reply
#2
you don't have a <visible> condition inside your image control,
so the visible/hidden animations will never be triggered.
they depend on the visible condition of the control.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
Ah, i see the error now.

Thanks Ronie
Reply

Logout Mark Read Team Forum Stats Members Help
Strange animation behaviour0