Re: ClutterTransitionGroup scripting



hi;

ClutterTransitionGroup does not implement the Scriptable interface, so
there is no syntax for creating transition groups from ClutterScript.

you should open a bug about it on bugzilla.gnome.org, product
'clutter'. I can also assist you in writing a patch for it, if you
want. just drop by in the #clutter IRC channel on irc.gnome.org.

ciao,
 Emmanuele.


On 6 December 2013 10:26, Dave Craig <dcraig brightsign biz> wrote:
Hi

In my program I have a clutter actor to which I'd like to apply a varierty of scripted transition. What I'm 
looking for is an example of some clutter script JSON showing some transitions grouped inside a 
ClutterTransitionGroup. My current JSON looks like this:

{
  "id"                  : "ShowTransition",
  "type"                : "ClutterTransitionGroup",
  "remove-on-complete"  : true,
  "duration"            : 1000,
  "group"               : [
                            {
                                "id"            : "ShowOpacity",
                                "type"          : "ClutterKeyframeTransition",
                                "property-name" : "opacity",
                                "keys" : [
                                           [ 1.0, 255, "easeInCubic" ]
                                         ]
                            }
                          ]
}

From looking at the source code, I don't think 'keys' is supported in the same way as in ClutterAnimator 
which is why this script parses, but doesn't have any effect. Can anyone point me in the direction of the 
correct syntax please,

Thanks,

Dave Craig.
_______________________________________________
clutter-list mailing list
clutter-list gnome org
https://mail.gnome.org/mailman/listinfo/clutter-list



-- 
W: http://www.emmanuelebassi.name
B: http://blogs.gnome.org/ebassi/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]