20tab / UnrealEnginePython

Embed Python in Unreal Engine 4
MIT License
2.7k stars 737 forks source link

Access the Editor Subsystem #865

Open Pixel-Minions opened 3 years ago

Pixel-Minions commented 3 years ago

Hi, I wonder if this is a missing feature or maybe I am missing something, but I've been trying to get the editor subsystem by using the EditorEngine class and calling the method GetEngineSubystem to pass the MoviePipelineQueueSubsystem object.

I've tried to use it directly EditorEngine().GetEngineSubystem(MoviePipelineQueueSubsystem) and by using something like EditorEngine().call_function("GetEngineSubystem", MoviePipelineQueueSubsystem) without success, it says the function can't be found.

Any help around this would be appreciated.

shdwdln commented 3 years ago

Have you tried calling to see if the function is accessible first with the call:

_GetEngineSubystem_func = EditorEngine().find_function('GetEngineSubystem') print('_GetEngineSubystem_func: {}'.format(_GetEngineSubystem_func))

... to see if it returns a None or UFunction handle?