edit camera transform keys in sequencer using python

Hi!

Im trying to loop trough all the the Transform keys of a camera in a given level sequence, once I get the keys I’m able to offset them, but I cant find any of the Transform keys. My code is based upon unreal “sequencer_key_examples.py” code. It finds all the find the “CurrentFocalLengt” keys, but not the Transform keys.

Here is a segment of my code:

sequencer_asset_path = LevelSequencePath

sequence = unreal.load_asset(sequencer_asset_path)

for object_binding in sequence.get_bindings():
	for track in object_binding.get_tracks():
		for section in track.get_sections():
				float_channels = section.find_channels_by_type(unreal.MovieSceneScriptingFloatChannel)

			combined_channels = []
			combined_channels.extend(float_channels)

			for channel in combined_channels:
				for key in channel.get_keys():

here is my sequencer:

Any help would be highly appreciated!

Found the answer:

sequencer_asset_path = LevelSequencePath

sequence = unreal.load_asset(sequencer_asset_path, unreal.LevelSequence)

all_tracks = sequence.get_master_tracks()
all_float_keys = []

for object_binding in sequence.get_bindings():
	all_tracks.extend(object_binding.get_tracks())

for track in all_tracks:
	for section in track.get_sections():

		for channel in section.get_channels():
			keys = channel.get_keys()

			for key in keys:
				print("do stuff here...")
1 Like