I’m trying to learn how to use Python to automate stuff in UE4, and I was trying to find a function to return the current time of the playhead position in the Animation Asset Editor. Is there such a function? All I can find currently is functions to return the time of already existing notifies and start and end position.
# Get the current time
current_time = unreal.LevelSequenceEditorBlueprintLibrary.get_current_time()
# Convert current time to a FrameNumber object
current_frame = unreal.FrameNumber(current_time)
Unfortunately that doesn’t work, what I’m trying to get is the frame where the play head is at in the Animation Asset Editor so that I can insert a tag where the play head is. It seems like access to the Animation Sequence itself isn’t exposed so you can’t get any information from the other editor windows. Currently what it seems like is you have to hard code the time where the Anim Notify goes