Skip to content
Jigwright
HullForge docs

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_settingsWrite

Arguments

NameTypeDescription
texturereqstringPath to a Texture asset.
compressionstringCompression setting by its enum name, for example TC_Normalmap, TC_Default or TC_Masks.
forceboolean
= 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_groupstringTexture group by its enum name, for example TEXTUREGROUP_World or TEXTUREGROUP_UI.
srgbbooleanWhether the texture is colour data in sRGB space. Must be FALSE for normal maps and masks.

Nearby in Textures: