# Can UE C++ use functions extended for Python scripts?

**URL:** <https://forums.unrealengine.com/t/can-ue-c-use-functions-extended-for-python-scripts/2273040>\
**Category:** C++\
**Tags:** unreal-engine, question\
**Created:** [January 12, 2025, 2:13pm UTC](https://forums.unrealengine.com/t/can-ue-c-use-functions-extended-for-python-scripts/2273040 "2025-01-12T14:13:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![SimonForgot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/simonforgot/32/1016544_2.png) [@SimonForgot](https://forums.unrealengine.com/u/SimonForgot)\
**Post date:** [January 12, 2025, 2:13pm UTC](https://forums.unrealengine.com/t/can-ue-c-use-functions-extended-for-python-scripts/2273040/1 "2025-01-12T14:13:40Z")

</div>

I am writing a level sequence editor plugin using C++.And I found there are some useful functions in

\UnrealEngine\Engine\Plugins\MovieScene\SequencerScripting\Source\SequencerScripting\Public\ExtensionLibraries\MovieSceneSequenceExtensions.h

I can use these functions in python,such as FindTracksByType.

But When I use it in C++ code like this:  
UMovieSceneSequenceExtensions::FindTracksByType(LevelSequence, UMovieSceneSubTrack::StaticClass());

I can pass the compile, But once I run it, It will report “Unresolved symbol”.

Can UE C++ use functions extended for Python scripts?

Is it possiable?

---

<div class="post-metadata">

**Author:** ![Observer64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Observer64](https://forums.unrealengine.com/u/Observer64)\
**Post date:** [January 22, 2025, 4:06pm UTC](https://forums.unrealengine.com/t/can-ue-c-use-functions-extended-for-python-scripts/2273040/2 "2025-01-22T16:06:04Z")

</div>

I never used python with UE before but I would think that the interop between python and c++ is not that granular nor two way.

In c++ you have the call to the python program, that program runs and has callbacks to c++ functions and then has an output which c++ can read.

So probably the easiest thing would be to write your function in c++ and have python call that, that way it is useable in both.

---

<div class="post-metadata">

**Author:** ![SimonForgot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/simonforgot/32/1016544_2.png) [@SimonForgot](https://forums.unrealengine.com/u/SimonForgot)\
**Post date:** [January 25, 2025, 9:58am UTC](https://forums.unrealengine.com/t/can-ue-c-use-functions-extended-for-python-scripts/2273040/3 "2025-01-25T09:58:58Z")

</div>

Thanks for the reply, I found that I could fix this problem by prefixing the classes with dllexport. I used to write C++ under linux, so I forgot that I should add it on Windows. Anyway, thanks for your reply 😉

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [February 24, 2025, 9:59am UTC](https://forums.unrealengine.com/t/can-ue-c-use-functions-extended-for-python-scripts/2273040/4 "2025-02-24T09:59:45Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
