Difference between revisions of "NiTexturingPropertyTextureHasTransform"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(New page: This is a command from NifSE. '''Syntax''' (bool:hasTransform) NiTexturingPropertyHasTransform:texSlot short:nifID ''short:blockID'' (bool:hasTransform) NiTexPropGet...)
 
imported>DragoonWraith
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:


'''Syntax'''
'''Syntax'''
  (bool:hasTransform) NiTexturingPropertyHasTransform:texSlot short:nifID ''short:blockID''
  (bool:hasTransform) NiTexturingPropertyTextureHasTransform:texSlot short:nifID ''short:blockID''
  (bool:hasTransform) NiTexPropGetTexHasTransf short:texSlot short:nifID ''short:blockID''
  (bool:hasTransform) NiTexPropTexHasTransf short:texSlot short:nifID ''short:blockID''


Returns whether the texture used by the specified [[NifSE (NiTexturingProperty)|<tt>NiTexturingProperty</tt>]] in the given slot has any transforms applied. The texture slots range from 0 to [[NiTexturingPropertyGetTextureCount]], and the possible choices are given below. See [[NiTexturingPropertyGetTextureCount]] for more details.
Returns whether the texture used by the specified [[:Category:NifSE (NiTexturingProperty)|<tt>NiTexturingProperty</tt>]] in the given slot has any transforms applied. The texture slots range from 0 to [[NiTexturingPropertyGetTextureCount]], and the possible choices are given below. See [[NiTexturingPropertyGetTextureCount]] for more details.


Returns -1 if the function fails for whatever reason.
Returns -1 if the function fails for whatever reason.
Line 13: Line 13:
{{NifSE NiTexturingProperty Texture Slots}}
{{NifSE NiTexturingProperty Texture Slots}}


[[Category:NifSE|TexturingPropertyHasTransform]]
[[Category:NifSE|TexturingPropertyTextureHasTransform]]
[[Category:NifSE (NiTexturingProperty)|HasTransform]]
[[Category:NifSE (NiTexturingProperty)|HasTransform]]

Latest revision as of 00:08, 21 January 2011

This is a command from NifSE.

Syntax

(bool:hasTransform) NiTexturingPropertyTextureHasTransform:texSlot short:nifID short:blockID
(bool:hasTransform) NiTexPropTexHasTransf short:texSlot short:nifID short:blockID

Returns whether the texture used by the specified NiTexturingProperty in the given slot has any transforms applied. The texture slots range from 0 to NiTexturingPropertyGetTextureCount, and the possible choices are given below. See NiTexturingPropertyGetTextureCount for more details.

Returns -1 if the function fails for whatever reason.

The default value of blockID, 0, indicates the NIF's root, a NiNode. NiNode blocks are not derived from NiTexturingProperty, so this function will always require an explicit blockID.

Texture Slots

  • BASE_MAP = 0 - a.k.a. the color map
  • DARK_MAP = 1
  • DETAIL_MAP = 2
  • GLOSS_MAP = 3
  • GLOW_MAP = 4
  • BUMP_MAP = 5
  • NORMAL_MAP = 6
  • UNKNOWN2_MAP = 7
  • DECAL_0_MAP = 8
  • DECAL_1_MAP = 9
  • DECAL_2_MAP = 10
  • DECAL_3_MAP = 11