conditional animations on WindowOpen
#1
I am using an animation in Home.xml. I want it only executed when the previous window is Startup.xml and a couple of conditions are met:

PHP Code:
!Container(9200).IsUpdating IsEmpty(Container(9000).ListItem.Property(widgetType)) 

Control 9200 is my widget container and so I want the animation to only start when that container has finished loading and the home menu item that is focused after startup actually has a widget associated with it. If it doesn't the animation should not be started.

Basically I can get this to work, however I can't seem to find a way to have this animation be performed only once. So anytime navigate the home menu and the above conditions are met again the animation is performed again obviously.

By using WindowOpen instead of Conditional as my animation type an animation is performed once as using

PHP Code:
<animation type="WindowOpen" condition="!Container(9200).IsUpdating + !IsEmpty(Container(9000).ListItem.Property(widgetType))"

does not work.

Is there another obvious way to do this I am not seeing? In any case I think allowing conditions to be set for other animation types would be a useful feature.
Reply
#2
PHP Code:
Window.Previous(startup
Reply
#3
The problem is, that condition will apply as long as I stay in Home. I need to prevent the animation to be performed again when I am not leaving the window too. Using the above conditions the animation will be performed anytime I navigate through from one main menu item to the other.
Reply
#4
I use a mix of window properties and timers for this, see:
https://raw.githubusercontent.com/sualfr...9/Home.xml
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#5
I had been trying out some things using properties before but didn't find a good method. I'll take a look for ideas, cheers.
Reply

Logout Mark Read Team Forum Stats Members Help
conditional animations on WindowOpen0