# Set Compression/Texture Settings from Blueprint not working

**URL:** <https://forums.unrealengine.com/t/set-compression-texture-settings-from-blueprint-not-working/426562>\
**Category:** Rendering\
**Tags:** parameters, set, compression, unreal-engine, runtime, question\
**Created:** [June 3, 2018, 1:15pm UTC](https://forums.unrealengine.com/t/set-compression-texture-settings-from-blueprint-not-working/426562 "2018-06-03T13:15:49Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Andrej730](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/andrej730/32/1194692_2.png) [@Andrej730](https://forums.unrealengine.com/u/Andrej730)\
**Post date:** [September 5, 2022, 7:32pm UTC](https://forums.unrealengine.com/t/set-compression-texture-settings-from-blueprint-not-working/426562/5 "2022-09-05T19:32:07Z")

</div>

I’ve actually just managed to fix it in python script by using “set\_editor\_property” instead of setting compression\_settings parameter:

```python
            # DOESN'T WORK - https://forums.unrealengine.com/t/set-compression-texture-settings-from-blueprint-not-working/426562/3
            # tex.compression_settings = unreal.TextureCompressionSettings.TC_HDR
            tex.lod_group = unreal.TextureGroup.TEXTUREGROUP_16_BIT_DATA

            tex.set_editor_property('compression_settings', unreal.TextureCompressionSettings.TC_HDR)
            tex.set_editor_property('lod_group', unreal.TextureGroup.TEXTUREGROUP_16_BIT_DATA)

```

You can also do it with “Set editor property” node from blueprint.

 ![UE4Editor_RUJwCDAkbF](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/d/a/fda2934580e701920f702a2c5f9bc9dfa17de9d0.png)

If you don’t know how to make this “set” node with texture compressions settings - it’s a bit tomfoolery but it works:

 ![Discord_lCjPK45823](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/6/0/960113e11dee1a0412fbf8828d8a9965489fbe7f.png)

---

_[View the full topic](https://forums.unrealengine.com/t/set-compression-texture-settings-from-blueprint-not-working/426562)._
