# Work with sequence and key frame with C++

**URL:** <https://forums.unrealengine.com/t/work-with-sequence-and-key-frame-with-c/488304>\
**Category:** Cinematics & Media\
**Tags:** keyframes, frames, unreal-engine, transform, question, CPP\
**Created:** [September 2, 2021, 11:58am UTC](https://forums.unrealengine.com/t/work-with-sequence-and-key-frame-with-c/488304 "2021-09-02T11:58:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vickylzy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vickylzy/32/494509_2.png) [@vickylzy](https://forums.unrealengine.com/u/vickylzy)\
**Post date:** [September 2, 2021, 11:58am UTC](https://forums.unrealengine.com/t/work-with-sequence-and-key-frame-with-c/488304/1 "2021-09-02T11:58:51Z")

</div>

Hi, currently I want to write a plugin that can read camera pose from file and add a **sequence** with camera **key frame** for it.

However I haven’t found any tutorial or doc that help with programming with sequence or key frame. I have found some python scrpits that do the job, check below:

```
 value = track_dict[key] # (x,y,z x,y,z x,y,z)
 frame = unreal.FrameNumber(int(key))
 sequencer_section.get_channels()[0].add_key(frame, value["location_x"])
 sequencer_section.get_channels()[1].add_key(frame, value["location_y"])
 sequencer_section.get_channels()[2].add_key(frame, value["location_z"])

```

I wonder if I can do this job in c++, thanks for any reply!

---

<div class="post-metadata">

**Author:** ![vickylzy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/vickylzy/32/494509_2.png) [@vickylzy](https://forums.unrealengine.com/u/vickylzy)\
**Post date:** [September 2, 2021, 12:02pm UTC](https://forums.unrealengine.com/t/work-with-sequence-and-key-frame-with-c/488304/2 "2021-09-02T12:02:00Z")

</div>

found similar question [https://answers.unrealengine.com/questions/1042128/view.html](https://answers.unrealengine.com/questions/1042128/view.html)
