The bindings are based on AnimationEffect. So Thomas please have a look whether I use it correctly :-) The method is exported multiple times as I did not want to wrap the FPx2 class.
An example script for fade effect:
var duration = 250;
effects.windowAdded.connect(function(w) {
effect.animate(w, Effect.Opacity, duration, 1.0);
});
effects.windowClosed.connect(function(w) {
effect.animate(w, Effect.Opacity, duration, 0.0, 1.0);
});
There is quite some work to be done. EffectWindow does not yet have properties, for EffectsHandler probably some more methods might be exported.
Unfortunately I had to change the signature of the signals as QtScript needs the type being exported as a metatype and metatypes want full name.
|