My images in blue colors. And UE import it as NormallMap.
How to disable it?
I know about changing this texture setting AFTER import. But I dont need after. I need import without compression to NormapMap (because I import > 1000 textures)
Is anybody anwser on this f…ng forum about this f…ng engine?
There WAS option: “Detect Normal Maps Based on Texture Content” in editor preferences, but cannot find it anymore.
However since you importing 1000 textures, you should look into python script and bulk import them that way. I am sure there are some code snippets floating around, or you can ask chatGPT (hopefully it will not screw that simple code).
THANK YOU!!!
But I do it automatically. Using Python script. I import more than 1000 textures. I can not uncheck checkbox for each texture manually. How to do it in Python script - did not find. Trying to playing with “comporession_settins” but not working
import unreal
# Define the path to your textures
import_path = "/Game/MyTextures"
# Get all texture assets in the import path
assets = unreal.EditorAssetLibrary.list_assets(import_path)
# Iterate through the assets and update compression settings
for asset_path in assets:
asset = unreal.EditorAssetLibrary.load_asset(asset_path)
# Check if it's a texture
if isinstance(asset, unreal.Texture):
asset.compression_settings = unreal.TextureCompressionSettings.TC_DEFAULT # Not a normal map
asset.srgb = True # Enable sRGB if needed
asset.modify() # Apply changes
unreal.EditorAssetLibrary.save_asset(asset_path) # Save changes
As usual there may be really silly bugs in this, but that last if statement looks correct at first glance.
So it may be enough to just force TC_DEFAULT, and asser.srgb = True. in your script.
And you can always create blueprint tool, or event (executable from editor) that goes trough textures in folder and changes compression.
Or use property matrix on whole folder and change all textures to SRGB
AttributeError: ‘TextureFactory’ object has no attribute ‘automated_import_should_detect_type’
AttributeError: ‘TextureFactory’ object has no attribute ‘compression_settings’