Skip to content

Instantly share code, notes, and snippets.

@MathieuDuponchelle
Created May 3, 2012 20:04
Show Gist options
  • Save MathieuDuponchelle/2588860 to your computer and use it in GitHub Desktop.
Save MathieuDuponchelle/2588860 to your computer and use it in GitHub Desktop.
GESContoller design
tlobject = ges.TimelineFileSource("mon/super/film/porno/")
effect = ges.Effect("mon/super/kaleidoscope")
video_track_object = tlobject.get_video_track_object() <-- Cette helper function pourrait etre sympa
video_track_object.set_effect("mon/super/kaleidoscope")
controller = ges.Controller(effect)
controller.set_keyframe_for_property(property, timestamp, value)
controller.remove_keyframe_for_property(property, timestamp, value)
controller.set_keyframes_for_property(property, timestamp, value, timestamp, value, .., ..) <-- Je sais pas trop comment binder des varargs en python mais on doit pouvoir y arriver
controller.remove_all_keyframes_for_property()
controller.set_interpolation_type_for_property()
controller.set_lfo_on_property(property) <Enleverait toutes les keyframes existantes, forcement
controller.set_lfo_options_for_property(amplitude, frequency, etc..) <-- En fait ca serait getter/setter pour chacune des props
controller.remove_lfo_for_property(property)
controller.stopControlling()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment