Kodi Community Forum

Full Version: Using variable in animation
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi.

I think that it's not possible to use variable in animation.

For example, I can't define a variable for a delay :

Code:
<variable name="Delay">
    <value>5000</value>
</variable>

And use it this way :

Code:
<animation>
    <effect type="rotatey" delay=$VAR[Delay] />
</animation>

Do you think this can be a feature ?

Or, as there is a some skinners here who know how the Kodi engine work, this feature is not possible. I guess it's not the first time people think about it.

Thanks.
It's not possible. You can use constants though for that field, but that's not dynamic.
I think there are a lot of cases where this could go wrong if it did work. For the cases where it would make sense to have it, conditional includes can be used too imo.
Thanks.

That's what I thought Wink
AFAIK It should be possible to hack something dynamic in python to control animations. I made something to fade between colors and scale stuff. Passing the control ID and params to a script. I just thought it woyld be worth the mention :-)