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 05:11:00 -0600
Hi Emmanuele,
Thanks for clearing that up - I'll file bugs and figure out a patch,
Dave
-----Original Message-----
From: Emmanuele Bassi [mailto:ebassi gmail com]
Sent: 06 December 2013 11:10
To: Dave Craig
Cc: clutter-list gnome org
Subject: Re: ClutterTransitionGroup scripting
hi;
On 6 December 2013 10:57, Dave Craig <dcraig brightsign biz> wrote:
ClutterTransitionGroup does not implement the Scriptable interface
Oh, the documentation says it does :-(
"ClutterTransitionGroup implements ClutterScriptable."
https://developer.gnome.org/clutter/stable/ClutterTransitionGroup.html
that's because ClutterTransitionGroup is-a ClutterTransition, which implements ClutterScriptable, but it does
not override ClutterScriptable itself to implement its custom keys.
In fact I think that part of the JSON appears to work as I can load the script and get the
ClutterTransitionGroup from it.
that is purely the result of ClutterTransition being a GObject:
ClutterScript can generate any GObject class.
However, the adding of frames to ClutterKeyframeTransition JSON is less clear to me.
that's half the part that is missing: ClutterKeyframeTransition does not define its own keys, and
ClutterTransitionGroup does not allow adding ClutterTransitions through ClutterScript.
in short:
* ClutterKeyframeTransition needs to add code to parse keyframes from ClutterScript definitions, using a
syntax to be defined
* ClutterTransitionGroup needs to add code to parse a list of ClutterTransition definitions and add them to
its list of managed transitions, using a syntax to be defined
both are valid issues that should be filed in the bug tracking system, and patches would be very much welcome.
ciao,
Emmanuele.
-----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/
_______________________________________________
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]