I am trying to create a rotate behaviour using clutter.BehaviourRotate()
with the following code:
    timeline = clutter.Timeline(10, 30)
    alpha = clutter.Alpha(timeline, clutter.ramp_inc_func)
    behaviour = clutter.BehaviourRotate(alpha, clutter.Y_AXIS,
clutter.ROTATE_CCW, 0, 45)

But when I run the code I am getting this error:
could not convert parameter 'axis' of type 'ClutterRotateAxis'

Seems like clutter.Y_AXIS isn't the correct object to pass? I even tried
using clutter.RotateAxis(clutter.Y_AXIS) which also gave the same error.
However if I try something similar using clutter.effect_rotate(),
clutter.Y_AXIS works fine. As in this example code:
clutter.effect_rotate(effect, widget, clutter.Y_AXIS, 45, (0, 0, 0),
clutter.ROTATE_CCW)

How should I use BehaviourRotate()?

Thanks
Chandan

Reply via email to