Module nif_common :: Class NifImportExport
[hide private]
[frames] | no frames]

Class NifImportExport

source code

Known Subclasses:

Abstract base class for import and export. Contains utility functions that are commonly used in both import and export.

Instance Methods [hide private]
 
msg_progress(self, message, progbar=None)
Message wrapper for the Blender progress bar.
source code
str
get_bone_name_for_blender(self, name)
Convert a bone name to a name that can be used by Blender: turns 'Bip01 R xxx' into 'Bip01 xxx.R', and similar for L.
source code
str
get_bone_name_for_nif(self, name)
Convert a bone name to a name that can be used by the nif file: turns 'Bip01 xxx.R' into 'Bip01 R xxx', and similar for L.
source code
 
get_extend_from_flags(self, flags) source code
 
get_flags_from_extend(self, extend) source code
Class Variables [hide private]
  EXTRA_SHADER_TEXTURES = ['EnvironmentMapIndex', 'NormalMapInde...
Names (ordered by default index) of shader texture slots for Sid Meier's Railroads and similar games.
  USED_EXTRA_SHADER_TEXTURES = {'Civilization IV': (3, 0, 1, 2),...
The default ordering of the extra data blocks for different games.
  progress_bar = 0
Level of the progress bar.
Method Details [hide private]

get_bone_name_for_blender(self, name)

source code 

Convert a bone name to a name that can be used by Blender: turns 'Bip01 R xxx' into 'Bip01 xxx.R', and similar for L.

Parameters:
  • name (str) - The bone name as in the nif file.
Returns: str
Bone name in Blender convention.

get_bone_name_for_nif(self, name)

source code 

Convert a bone name to a name that can be used by the nif file: turns 'Bip01 xxx.R' into 'Bip01 R xxx', and similar for L.

Parameters:
  • name (str) - The bone name as in Blender.
Returns: str
Bone name in nif convention.

Class Variable Details [hide private]

EXTRA_SHADER_TEXTURES

Names (ordered by default index) of shader texture slots for Sid Meier's Railroads and similar games.

Value:
['EnvironmentMapIndex',
 'NormalMapIndex',
 'SpecularIntensityIndex',
 'EnvironmentIntensityIndex',
 'LightCubeMapIndex',
 'ShadowTextureIndex']

USED_EXTRA_SHADER_TEXTURES

The default ordering of the extra data blocks for different games.

Value:
{'Civilization IV': (3, 0, 1, 2),
 'Sid Meier\'s Railroads': (3, 0, 4, 1, 5, 2)}