RE: ClutterTransitionGroup scripting
- From: Dave Craig <dcraig brightsign biz>
- To: "clutter-list gnome org" <clutter-list gnome org>
- Subject: RE: ClutterTransitionGroup scripting
- Date: Fri, 6 Dec 2013 04:57:15 -0600
ClutterTransitionGroup does not implement the Scriptable interface
Oh, the documentation says it does :-(
"ClutterTransitionGroup implements ClutterScriptable."
https://developer.gnome.org/clutter/stable/ClutterTransitionGroup.html
In fact I think that part of the JSON appears to work as I can load the script and get the
ClutterTransitionGroup from it.
However, the adding of frames to ClutterKeyframeTransition JSON is less clear to me.
Dave
-----Original Message-----
From: Emmanuele Bassi [mailto:ebassi gmail com]
Sent: 06 December 2013 10:44
To: Dave Craig
Cc: clutter-list gnome org
Subject: 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]