NiSourceTextureGetFile

From the Oblivion ConstructionSet Wiki
Revision as of 22:09, 28 August 2010 by imported>DragoonWraith (fixing categorizing)
Jump to navigation Jump to search

This is a command from NifSE.

Syntax

(string:filePath) NiSourceTextureGetFile short:nifID short:blockID

Returns the path relative to Oblivion\Textures\ to the texture file used by the indicated NiSourceTexture-derived block. The blockID argument, as usual, defaults to 0, indicating the root which is a NiNode block. NiNode blocks are not derived from NiSourceTexture, so this function will almost never be used without specifying the blockID desired.

Typically, one determines blockID by using NiAVObjectGetPropertyByType to get the NiTexturingProperty associated with a NiAVObject, and then using NiTexturingPropertyGetTextureSource to get the blockID of the NiSourceTexture.

See Also