Created
May 3, 2012 20:04
-
-
Save MathieuDuponchelle/2588860 to your computer and use it in GitHub Desktop.
GESContoller design
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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