Difference between revisions of "NiSourceTextureGetFile"

Jump to navigation Jump to search
291 bytes added ,  21:07, 28 August 2010
no edit summary
imported>DragoonWraith
m (NifGetNthChildBaseTexture moved to NiSourceTextureGetFile: most similar new function.)
imported>DragoonWraith
 
'''Syntax'''
(string:FilePathfilePath) NifGetNthChildBaseTextureNiSourceTextureGetFile short:ChildIDnifID ''short:NifIDblockID''
 
Returns the file path (relative to the <tt>Oblivion\DataTextures\</tt> folder,to '''notthe texture file used by the indicated <tt>Oblivion\Data\Textures\NiSourceTexture</tt>''')-derived ofblock. theThe Base<tt>blockID</tt> Textureargument, ofas theusual, specifieddefaults Childto 0, ofindicating the root. Ifwhich the Child does not haveis a Base<tt>NiNode</tt> Texture,block. or<tt>NiNode</tt> NiTexturingProperty,blocks orare thenot processderived failsfrom for any other reason<tt>NiSourceTexture</tt>, anso emptythis stringfunction iswill returnedalmost andnever anbe appropriateused messagewithout is printed tospecifying the Console<tt>blockID</tt> and NifSE.logdesired.
 
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 ==
* [[NiTexturingPropertyGetTextureSource]]
* [[NifNthChildHasTexturingProp]]
* [[NiSourceTextureSetExternalTexture]]
* [[NifNthChildHasBaseTexture]]
* [[NifSetNthChildBaseTexture]]
 
[[Category:NifSE|GetNthChildBaseTextureNiSourceTextureGetFile]]
[[Category:NifSE (ChildrenNiSourceTexture)|GetNthChildBaseTextureGetFile]]

Navigation menu