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. -- Emmanuele Bassi, Intel Open Source Technology Center _______________________________________________ clutter-app-devel-list mailing list clutter-app-devel-list@clutter-project.org http://lists.clutter-project.org/listinfo/clutter-app-devel-list