2011-03-08, 20:14
I've been working on some skins for PseudoTV and have run into a bit of trouble. I want to trigger a fade animation when the user presses the info button. The developer has coded it so that when the button is pressed, the addon sets the <visible> tag of a group control to true, thus showing the info window. Now this is where I want that window to fade in. I have tried adding the following code under the impression that when the group control is visible, the animation would be triggered.
I have also tried setting a slide animation for text that is triggered by the visibility of the group control to true.
Unfortunately none of these worked. My question is, is this the normal behavior or am I doing something wrong? If it's former, can this sort of thing (triggering animations from a python call) be added?
Code:
<animation effect="fade" time="400">VisibleChange</animation>
I have also tried setting a slide animation for text that is triggered by the visibility of the group control to true.
Code:
<animation effect="slide" start="-120,0" time="200" condition="Control.HasFocus(2)">Conditional</animation>
Unfortunately none of these worked. My question is, is this the normal behavior or am I doing something wrong? If it's former, can this sort of thing (triggering animations from a python call) be added?