# I want to replace UTextBlock with URichTextBlock in a python script

**URL:** <https://forums.unrealengine.com/t/i-want-to-replace-utextblock-with-urichtextblock-in-a-python-script/2011021>\
**Category:** Editor Scripting\
**Tags:** unreal-engine, question\
**Created:** [September 8, 2024, 3:46am UTC](https://forums.unrealengine.com/t/i-want-to-replace-utextblock-with-urichtextblock-in-a-python-script/2011021 "2024-09-08T03:46:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anonymous\_7d8a14313031d4374a829d9fb04783f6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Anonymous\_7d8a14313031d4374a829d9fb04783f6](https://forums.unrealengine.com/u/Anonymous_7d8a14313031d4374a829d9fb04783f6)\
**Post date:** [September 8, 2024, 3:46am UTC](https://forums.unrealengine.com/t/i-want-to-replace-utextblock-with-urichtextblock-in-a-python-script/2011021/1 "2024-09-08T03:46:40Z")

</div>

I want to replace UTextBlock placed in WBP with URichTextBlock in a python script

If I replace it manually, the properties are reset, so I want to automate it. Is there a good way to do this?
