Set Texture Settings
Set a texture's compression, sRGB flag or texture group and verify each by reading it back. Every field is optional and only the ones given are touched, so fixing sRGB on a normal map does not silently reset anything else.
hf_set_texture_settingsWriteArguments
| Name | Type | Description |
|---|---|---|
texturereq | string | Path to a Texture asset. |
compression | string | Compression setting by its enum name, for example TC_Normalmap, TC_Default or TC_Masks. |
force | boolean = false | Edit even when the asset cannot currently be saved - for example when revision control is configured but disconnected. The change will be made in memory and WILL BE LOST unless the underlying problem is fixed before saving. Only pass this if you intend to discard the work or fix the connection first. |
lod_group | string | Texture group by its enum name, for example TEXTUREGROUP_World or TEXTUREGROUP_UI. |
srgb | boolean | Whether the texture is colour data in sRGB space. Must be FALSE for normal maps and masks. |
Related tools
Nearby in Textures: