Difference between revisions of "NiMaterialPropertyGetDiffuseColor"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>DragoonWraith
(New page: This is a command from NifSE. '''Syntax''' (array_var:color3) NiMaterialPropertyGetDiffuseColor short:nifID ''short:blockID'' (array_var:color3) NiAlphaPropGetAmbCol...)
 
Tag: Manual revert
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
'''Syntax'''
'''Syntax'''
  (array_var:color3) NiMaterialPropertyGetDiffuseColor short:nifID ''short:blockID''
  (array_var:color3) NiMaterialPropertyGetDiffuseColor short:nifID ''short:blockID''
  (array_var:color3) NiAlphaPropGetAmbColor short:nifID ''short:blockID''
  (array_var:color3) NiAlphaPropGetDifColor short:nifID ''short:blockID''


Returns a StringMap containing the diffuse color data of the [[:Category:NifSE (NiMaterialProperty)|<tt>NiMaterialProperty</tt>]] specified by <tt>blockID</tt>.
Returns a StringMap containing the diffuse color data of the [[:Category:NifSE (NiMaterialProperty)|<tt>NiMaterialProperty</tt>]] specified by <tt>blockID</tt>.

Latest revision as of 15:21, 21 December 2023

This is a command from NifSE.

Syntax

(array_var:color3) NiMaterialPropertyGetDiffuseColor short:nifID short:blockID
(array_var:color3) NiAlphaPropGetDifColor short:nifID short:blockID

Returns a StringMap containing the diffuse color data of the NiMaterialProperty specified by blockID.

The array_var:color3 is a StringMap with the following elements:

map["r"]:float - red intensity
map["g"]:float - green intensity
map["b"]:float - blue intensity

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

See Also[edit | edit source]