# How to set BluePrint Variable through Python API

**URL:** <https://forums.unrealengine.com/t/how-to-set-blueprint-variable-through-python-api/120073>\
**Category:** Editor Scripting\
**Tags:** unreal-engine\
**Created:** [December 17, 2018, 10:52am UTC](https://forums.unrealengine.com/t/how-to-set-blueprint-variable-through-python-api/120073 "2018-12-17T10:52:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![magnus.larsson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@magnus.larsson](https://forums.unrealengine.com/u/magnus.larsson)\
**Post date:** [December 17, 2018, 10:52am UTC](https://forums.unrealengine.com/t/how-to-set-blueprint-variable-through-python-api/120073/1 "2018-12-17T10:52:19Z")

</div>

Hey so I have a script creating my own child blueprints from my parent class. And I have exposed variables that I want to set but the only line I can find in the API documentation that makes any sense to me is this one:

```auto

unreal.SystemLibrary.set_float_property_by_name(my_blueprint_asset, 'health', 10.0)

```

but it doesnt work so I am not sure where to go from here.

---

<div class="post-metadata">

**Author:** ![AmrSrour](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/amrsrour/32/465284_2.png) [@AmrSrour](https://forums.unrealengine.com/u/AmrSrour)\
**Post date:** [January 2, 2024, 4:39pm UTC](https://forums.unrealengine.com/t/how-to-set-blueprint-variable-through-python-api/120073/2 "2024-01-02T16:39:48Z")

</div>

> [@magnus.larsson](#):
>
> want to set but the only line I can find in the

full Code Please To KNow Much More about Your Code …
