On Mon, 12 Apr 2010 00:23:41 +0200, Rune Svendsen <runesv...@gmail.com> wrote:
> I don't have much Python experience, and no clutter experience, but I > simply don't understand why all the documents I read on > clutter.BehaviourPath states it has several "knot"-functions > (append_knots() etc.). But when I get to the second line in the > following bit of the code: > > behavior = clutter.BehaviourPath(alpha) > behavior.append_knots(actor.get_position()) > > the following error is printed to the terminal: > > AttributeError: 'clutter.BehaviourPath' object has no attribute > 'append_knots' The 'append_knots' function was in 0.8 but it was taken away in 1.0. ClutterBehaviourPath was mostly re-designed for 1.0 so that it combined ClutterBehaviourBspline as well. ClutterBehaviourPath now animates an actor along a separate object called a ClutterPath. Any methods for modifying the path are now part of ClutterPath. I think the equivalent of something like this line: behavior.append_knots(point) would be behavior.path.add_line_to(point.x, point.y) - Neil -- To unsubscribe send a mail to clutter+unsubscr...@o-hand.com