How to set animaton easing (in\out) in sequencer with Python. Picture inside

I can set easing manually.

easing

I have found parameter “easing” in unreal.MovieSceneSection


unreal.MovieSceneSection
(easing (MovieSceneEasingSettings): [Read-Write] Easing)


i followed to MovieSceneEasingSettings


Bases: [unreal.StructBase]
Movie Scene Easing Settings
C++ Source:

  • Module: MovieScene
  • File: MovieSceneSection.h

When i try to see current parameters of easing,

unreal.log(My_animsection.get_editor_property("easing"))
i receive empty struct

LogPython: <Struct 'MovieSceneEasingSettings' (0x0000080193DA5B60) {}>

When i try to set variables (present in MovieSceneSection.h)
My_animsection.get_editor_property('easing').set_editor_property('AutoEaseInDuration',10,unreal.PropertyAccessChangeNotifyMode.NEVER)

I receive error

LogPython: Error: MovieSceneEasingSettings: Property ‘AutoEaseInDuration’ for attribute ‘AutoEaseInDuration’ on ‘MovieSceneEasingSettings’ is protected and cannot be set


How to provide easing with Python?

Stuck on the same topic, any update on how to achieve this?

No luck for SETting easing, but success with COPY. I mean create MANUALLY section with easing (in main or another sequence), then COPY easing settings to variable, and then

mySection.set_editor_property(‘easing’,easingSettings)

1 Like

This is Very very Helpful thank you so much !
How I found it useful is to create another sequencer and basically put a place holder with eased-in animations and I just copied the settings to my plotted animations

So is there a better way to set this ‘easing’ property? I event don’t konw what property should be set in MovieSceneEasingSettings. :melting_face:, and copy ‘easing’ is very inflexible :sob: