I think there should be a way to mark certain lines in a function that should not be animated when ui.animate is called. For example, in my cover flow, I have all the frames sliding, but what if I want one frame to have its alpha set to 0 before it slides? The only way to do this is to break the animation into two parts with a function between, like
ui.animate(anim_1, duration=1.0)
self.subviews[0].alpha = 0.0
ui.animate(anim_2, duration=1.0)
self.subviews[0].alpha = 1.0
This seems awkward, because I'm really performing one animation, but I'm having to split it. Maybe that's not the best example, but there are certainly cases where it would be desirable to have instant actions within an animation that had to happen in the middle.
I think a possibility would be to add comments above lines that should not be animated, like
def anim():
view['button'].frame = (0,0,30,60)
#ui.no_animate
view['button2'].frame = (90, 140, 20, 10)
view['slider'].alpha = 0.3
Where the animated lines are
view['button'].frame = (0,0,30,60)
and
view['slider'].alpha = 0.3
and only the second action is not animated. This is just one way to implement my idea.