# Python: BlueprintImplementableEvent call fails

**URL:** <https://forums.unrealengine.com/t/python-blueprintimplementableevent-call-fails/454565>\
**Category:** Editor Scripting\
**Tags:** Python, override, unreal-engine, function, Blueprint, question\
**Created:** [August 29, 2019, 9:37am UTC](https://forums.unrealengine.com/t/python-blueprintimplementableevent-call-fails/454565 "2019-08-29T09:37:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_0846af92](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0846af92](https://forums.unrealengine.com/u/anonymous_user_0846af92)\
**Post date:** [August 29, 2019, 9:37am UTC](https://forums.unrealengine.com/t/python-blueprintimplementableevent-call-fails/454565/1 "2019-08-29T09:37:40Z")

</div>

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_

 ![Blueprints implementation of clearSpline(), returning boolean true](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/c/0ec46be6c5cab8551a3ad166e231846f303ebac5.png "BP 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.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0846af92](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0846af92](https://forums.unrealengine.com/u/anonymous_user_0846af92)\
**Post date:** [August 29, 2019, 2:35pm UTC](https://forums.unrealengine.com/t/python-blueprintimplementableevent-call-fails/454565/2 "2019-08-29T14:35:48Z")

</div>

As a side note, huge thanks to Alex Quevillon for his tutorial: [How to call a C++ function using Python](https://youtu.be/ipd0shu8dCk)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0846af92](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0846af92](https://forums.unrealengine.com/u/anonymous_user_0846af92)\
**Post date:** [August 29, 2019, 2:35pm UTC](https://forums.unrealengine.com/t/python-blueprintimplementableevent-call-fails/454565/3 "2019-08-29T14:35:50Z")

</div>

**Correction:**  
_Important: My python function call_  
`unreal.planeTrackEditableWrapper.clear_spline(actor)`  
I should also have mentioned that “planeTrackEditableWrapper” is the name of the C++ Class where the function is declared, and the parent to the blueprint class.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0846af92](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0846af92](https://forums.unrealengine.com/u/anonymous_user_0846af92)\
**Post date:** [August 29, 2019, 2:35pm UTC](https://forums.unrealengine.com/t/python-blueprintimplementableevent-call-fails/454565/4 "2019-08-29T14:35:52Z")

</div>

Managed to solve this one by myself;

In order to call a C++ function from python, it must be implemented as a `BlueprintCallable`.  
You cannot implement a function as both `BlueprintCallable` and `BlueprintImplementableEvent` for obvious reasons.  
(though i did try anyway, and no, it did not work)

So, the solution is to make _another_ C++ function with `UFUNCTION(BlueprintCallable)`, with the sole purpose of calling your `BlueprintImplementableEvent`.

**.h**  
 ![C++ function declarations (see image)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/d/3/7d3c1bdfcc8bc9f586e3f222cabb3d1b66e044eb.png "C++ Function Declarations")  
**.cpp**  
 ![C++ caller function implementation (see image)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/1/c/e1c1e6c5bd99d545e3c6e6fd16caf825742f180b.png "C++ Caller Function Implementation")

Because of this behaviour, I wonder if using `BlueprintImplementableEvent` would allow you to overload a C++ function in python…? Interesting, might look into it later.
