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 Data\Texures folder.

Syntax

[help]
(int) GetTextureWidth path:string

Example

set iWidth to GetTextureWidth "myTexture.dds" 

Notes

  • Since version 5.06, the function supports textures packed into BSA archives as well as loose files.

See Also