# edit camera transform keys in sequencer using python

**URL:** <https://forums.unrealengine.com/t/edit-camera-transform-keys-in-sequencer-using-python/691077>\
**Category:** Editor Scripting\
**Tags:** Python, unreal-engine\
**Created:** [November 15, 2022, 11:11am UTC](https://forums.unrealengine.com/t/edit-camera-transform-keys-in-sequencer-using-python/691077 "2022-11-15T11:11:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Havard\_stardust](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Havard\_stardust](https://forums.unrealengine.com/u/Havard_stardust)\
**Post date:** [November 15, 2022, 11:11am UTC](https://forums.unrealengine.com/t/edit-camera-transform-keys-in-sequencer-using-python/691077/1 "2022-11-15T11:11:33Z")

</div>

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:

```auto
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:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/a/e/caea55594ba91bffce264d7be5a2bcb6e9ad4a93.png)

Any help would be highly appreciated!

---

<div class="post-metadata">

**Author:** ![Havard\_stardust](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Havard\_stardust](https://forums.unrealengine.com/u/Havard_stardust)\
**Post date:** [November 15, 2022, 12:02pm UTC](https://forums.unrealengine.com/t/edit-camera-transform-keys-in-sequencer-using-python/691077/2 "2022-11-15T12:02:31Z")

</div>

Found the answer:

```auto
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...")

```
