Difference between revisions of "NiSourceTextureGetFile"
Jump to navigation
Jump to search
imported>DragoonWraith m (fixing categorizing) |
imported>DragoonWraith |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
'''Syntax''' | '''Syntax''' | ||
(string:filePath) NiSourceTextureGetFile short:nifID ''short:blockID'' | (string:filePath) NiSourceTextureGetFile short:nifID ''short:blockID'' | ||
(string:filePath) NiSrcTexGetFile short:nifID ''short:blockID'' | |||
Returns the path relative to <tt>Oblivion\Textures\</tt> to the texture file used by the indicated <tt>NiSourceTexture</tt>-derived block. The <tt>blockID</tt> argument, as usual, defaults to 0, indicating the root which is a <tt>NiNode</tt> block. <tt>NiNode</tt> blocks are not derived from <tt>NiSourceTexture</tt>, so this function will almost never be used without specifying the <tt>blockID</tt> desired. | Returns the path relative to <tt>Oblivion\Textures\</tt> to the texture file used by the indicated <tt>NiSourceTexture</tt>-derived block. The <tt>blockID</tt> argument, as usual, defaults to 0, indicating the root which is a <tt>NiNode</tt> block. <tt>NiNode</tt> blocks are not derived from <tt>NiSourceTexture</tt>, so this function will almost never be used without specifying the <tt>blockID</tt> desired. | ||
Line 10: | Line 11: | ||
== See Also == | == See Also == | ||
* [[NiTexturingPropertyGetTextureSource]] | * [[NiTexturingPropertyGetTextureSource]] | ||
* [[NiSourceTextureIsExternal]] | |||
* [[NiSourceTextureSetExternalTexture]] | * [[NiSourceTextureSetExternalTexture]] | ||
[[Category:NifSE|SourceTextureGetFile]] | [[Category:NifSE|SourceTextureGetFile]] | ||
[[Category:NifSE (NiSourceTexture)|GetFile]] | [[Category:NifSE (NiSourceTexture)|GetFile]] |
Latest revision as of 13:42, 31 August 2010
This is a command from NifSE.
Syntax
(string:filePath) NiSourceTextureGetFile short:nifID short:blockID (string:filePath) NiSrcTexGetFile 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.