Difference between revisions of "NiSourceTextureGetFile"
Jump to navigation
Jump to search
no edit summary
imported>DragoonWraith m (NifGetNthChildBaseTexture moved to NiSourceTextureGetFile: most similar new function.) |
imported>DragoonWraith |
||
Line 2: | Line 2: | ||
'''Syntax''' | '''Syntax''' | ||
(string: | (string:filePath) NiSourceTextureGetFile short:nifID ''short:blockID'' | ||
Returns the | 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. | ||
Typically, one determines <tt>blockID</tt> by using [[NiAVObjectGetPropertyByType]] to get the <tt>NiTexturingProperty</tt> associated with a <tt>NiAVObject</tt>, and then using [[NiTexturingPropertyGetTextureSource]] to get the <tt>blockID</tt> of the <tt>NiSourceTexture</tt>. | |||
== See Also == | == See Also == | ||
* [[ | * [[NiTexturingPropertyGetTextureSource]] | ||
* [[ | * [[NiSourceTextureSetExternalTexture]] | ||
[[Category:NifSE| | [[Category:NifSE|NiSourceTextureGetFile]] | ||
[[Category:NifSE ( | [[Category:NifSE (NiSourceTexture)|GetFile]] |