Kodi Community Forum

Full Version: window property in animation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Basically what the title says i want to make sure I am not doing something wrong. I have a window property of I want to use as a static variable in a animation.

Simply put

Animation effect slide start 00 end window property,0 some condition

Is this possible or... Does the anmation not accept alternative info... Btw the window property is in info bracket s.
Yeah this doesn't work unfortunately. You have to make all the different values as separate animations and then make them conditional based upon window prop.

e.g.
Code:
<animation effect="fade" end="90" condition="Integer.IsEqual(Window(Home).Property(FadeAmount),90)">Conditional</animation>
<animation effect="fade" end="80" condition="Integer.IsEqual(Window(Home).Property(FadeAmount),80)">Conditional</animation>
<animation effect="fade" end="70" condition="Integer.IsEqual(Window(Home).Property(FadeAmount),70)">Conditional</animation>
etc.
Yeah I have that now I was hoping I could shorten the code..... Thanks for the verfiying this.... Now I can toss that idea and move on to the next hahaha.