Skip to content

niSkinData⚓︎

Contains skinning data that may be shared by multiple NiSkinInstance objects.

This type inherits the following: niObject

Properties⚓︎

boneData⚓︎

Read-only. An array of objects containing one entry for each bone that influences vertices in the skinned mesh. The order of the entries in the boneData array corresponds to the order of the bones in the bone array in the niSkinInstance objects that point to this niSkinData. Each object in this array contains all the data needed to deform vertices by a single bone.

Returns:


partition⚓︎

Access to the container with the skinning data optimized for hardware skinning. If the niSkinData object has not been partitioned, this property is nil.

Returns:


refCount⚓︎

Read-only. The number of references that exist for this object. When this value reaches zero, the object will be deleted.

Returns:

  • result (number)

RTTI⚓︎

Read-only. The runtime type information for this object. This is an alias for the .runTimeTypeInformation property.

Returns:


runTimeTypeInformation⚓︎

Read-only. The runtime type information for this object.

Returns:


transform⚓︎

Defines the transform of the root bone in the bind pose from the parent node of the root bone to the coordinate system of the skinned object.

Returns:


Methods⚓︎

clone⚓︎

Creates a copy of this object.

local result = myObject:clone()

Returns:


isInstanceOfType⚓︎

Determines if the object is of a given type, or of a type derived from the given type.

local result = myObject:isInstanceOfType(type)

Parameters:

Returns:

  • result (boolean)

isOfType⚓︎

Determines if the object is of a given type.

local result = myObject:isOfType(type)

Parameters:

Returns:

  • result (boolean)

saveBinary⚓︎

Serializes the object, and writes it to the given file.

local success = myObject:saveBinary(path)

Parameters:

  • path (string): The path to write the file at, relative to the Morrowind installation folder.

Returns:

  • success (boolean): If true the object was successfully serialized.