Python: BlueprintImplementableEvent call fails

anonymous_user_0846af92
Thu, 29 Aug 2019 09:37:40 +0000
Editor Scripting

Hi everyone,
I’m looking to call a blueprint function from python.

Whilst we wait for a direct interface to blueprint functions, I’m using a C++ declaration of my function with BlueprintImplementableEvent, which is then overridden by the blueprint and called from python:

Not important: My function implementation

Important: My function declaration
UFUNCTION(BlueprintImplementableEvent)
bool clearSpline();

Important: My python function call
unreal.planeTrackEditableWrapper.add_new_point(actor, unreal.Vector(0))

I know that my BlueprintImplementableEvent is written correctly, as calling it from C++ prints “CLEAR SPLINE” onto the screen.
However, when called from python, no string is printed, and the function always returns False.

I understand this is a bit of a complicated one, so any help is very much appreciated.

4 posts - 1 participant