GetTextureFormat
From GECK
A function added by the JohnnyGuitar NVSE Plugin.
Contents
Description
Returns format of a .dds texture file using its filepath relative to New Vegas folder (or to Data/Textures folder if the optional argument is used). Returns values 1 to 5 corresponding to DXT1 to DXT5.
Syntax
(int) GetTextureFormat path:string useDataTextures:int(0/1)
Example
set iFormat to GetTextureFormat "Data/Textures/myTexture.dds"
Notes
- This function only works on loose files; it won't work with files in BSA Files.