actually i missed to call:
transition.set_remove_on_completed(False)
which does what i need (in conjunction with set_repeat_count(-1) of
course) !
Am Donnerstag, den 10.05.2012, 16:53 +0100 schrieb Emmanuele Bassi:
> On 2012-05-09 at 15:53, Moritz Renftle wrote:
> > in fact i tried that too, but it doesn't help?!
> > this code:
> >
> > def rotate(self):
> > self.save_easing_state()
> > self.set_easing_duration(self.y_duration)
> > self.set_easing_mode(Clutter.AnimationMode.EASE_IN_OUT_QUAD)
> > self.set_rotation(Clutter.RotateAxis.Y_AXIS, 360.0, 0, 0, 0)
> > self.get_transition("rotation-angle-y").set_repeat_count(-1)
> > self.restore_easing_state()
> >
> > will rotate the actor only once.
>
> works fine with Clutter master and a C example (basic-actor.c inside the
> examples directory, after modifying the animate_rotation() function to
> change the repeat-count).
>
> restoring the easing state has no effect on the currently running
> transitions (they are part of the actor state), so get_transition() can
> be called at any point, and with any easing state.
>
> ciao,
> Emmanuele.
>
_______________________________________________
clutter-app-devel-list mailing list
[email protected]
http://lists.clutter-project.org/listinfo/clutter-app-devel-list