GetTextureWidth

From GECK
Jump to: navigation, search


A function added by the JohnnyGuitar NVSE Plugin.

Description

Returns width of a .dds texture file using its filepath relative to New Vegas folder (or to Data/Textures folder if optional argument is used).

Syntax

[help]
(int) GetTextureWidth path:string useDataTextures:int(0/1)

Example

set iWidth to GetTextureWidth "Data/Textures/myTexture.dds" 

Notes

  • This function only works on loose files; it won't work with files in BSA Files.

See Also