|
rebuildBonesExtraMatrices(self)
Recover bone extra matrices. |
source code
|
|
|
|
|
|
|
rebuildFullNames(self)
Recovers the full object names from the text buffer and rebuilds the
names dictionary. |
source code
|
|
|
getUniqueName(self,
blender_name)
Returns an unique name for use in the NIF file, from the name of a
Blender object. |
source code
|
|
|
getFullName(self,
blender_name)
Returns the original imported name if present, or the name by which
the object was exported already. |
source code
|
|
|
getExportedObjects(self)
Return a list of exported objects. |
source code
|
|
|
__init__(self,
**config)
Main export function. |
source code
|
|
|
exportNode(self,
ob,
space,
parent_block,
node_name)
Export a mesh/armature/empty object ob as child of parent_block. |
source code
|
|
|
exportKeyframes(self,
ipo,
space,
parent_block,
bind_mat=None,
extra_mat_inv=None) |
source code
|
|
|
exportVertexColorProperty(self,
block_parent,
flags=1,
vertex_mode=0,
lighting_mode=1)
Create a vertex color property, and attach it to an existing block
(typically, the root of the nif tree). |
source code
|
|
|
exportZBufferProperty(self,
block_parent,
flags=15,
function=3)
Create a z-buffer property, and attach it to an existing block
(typically, the root of the nif tree). |
source code
|
|
|
exportAnimGroups(self,
animtxt,
block_parent)
Parse the animation groups buffer and write an extra string data
block, and attach it to an existing block (typically, the root of the
nif tree). |
source code
|
|
|
|
|
|
|
exportFlipController(self,
fliptxt,
texture,
target,
target_tex) |
source code
|
|
|
exportTriShapes(self,
ob,
space,
parent_block,
trishape_name=None) |
source code
|
|
|
exportMaterialControllers(self,
b_material,
n_geom)
Export material animation data for given geometry. |
source code
|
|
|
exportMaterialAlphaController(self,
b_material,
n_geom)
Export the material alpha controller data. |
source code
|
|
|
exportMaterialUVController(self,
b_material,
n_geom)
Export the material UV controller data. |
source code
|
|
|
exportBones(self,
arm,
parent_block)
Export the bones of an armature. |
source code
|
|
|
exportChildren(self,
obj,
parent_block)
Export all children of blender object ob as children of parent_block. |
source code
|
|
|
exportMatrix(self,
obj,
space,
block)
Set a block's transform matrix to an object's transformation matrix
in rest pose. |
source code
|
|
|
|
|
getObjectSRT(self,
obj,
space='localspace')
Find scale, rotation, and translation components of an object in the
rest pose. |
source code
|
|
|
decomposeSRT(self,
mat)
Decompose Blender transform matrix as a scale, rotation matrix, and
translation vector. |
source code
|
|
|
|
|
createBlock(self,
blocktype,
b_obj=None)
Helper function to create a new block, register it in the list of
exported blocks, and associate it with a Blender object. |
source code
|
|
|
registerBlock(self,
block,
b_obj=None)
Helper function to register a newly created block in the list of
exported blocks and to associate it with a Blender object. |
source code
|
|
|
|
|
exportCollision(self,
obj,
parent_block)
Main function for adding collision object obj to a node. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
exportAlphaProperty(self,
flags=0x00ED,
threshold=0)
Return existing alpha property with given flags, or create new one if
an alpha property with required flags is not found. |
source code
|
|
|
exportSpecularProperty(self,
flags=0x0001)
Return existing specular property with given flags, or create new one
if a specular property with required flags is not found. |
source code
|
|
|
exportWireframeProperty(self,
flags=0x0001)
Return existing wire property with given flags, or create new one if
an wire property with required flags is not found. |
source code
|
|
|
exportStencilProperty(self)
Return existing stencil property with given flags, or create new one
if an identical stencil property. |
source code
|
|
|
exportMaterialProperty(self,
name='',
flags=0x0001,
ambient=(1.0,1.0,1.0),
diffuse=(1.0,1.0,1.0),
specular=(0.0,0.0,0.0),
emissive=(0.0,0.0,0.0),
glossiness=10.0,
alpha=1.0,
emitmulti=1.0)
Return existing material property with given settings, or create a
new one if a material property with these settings is not found. |
source code
|
|
|
exportTexDesc(self,
texdesc=None,
uvlayers=None,
mtex=None)
Helper function for exportTexturingProperty to export each texture
slot. |
source code
|
|
|
exportTexturingProperty(self,
flags=0x0001,
applymode=None,
uvlayers=None,
basemtex=None,
glowmtex=None,
bumpmtex=None,
glossmtex=None,
darkmtex=None,
detailmtex=None,
refmtex=None)
Export texturing property. |
source code
|
|
|
exportBSShaderProperty(self,
basemtex=None,
bumpmtex=None,
glowmtex=None)
Export a Bethesda shader property block. |
source code
|
|
|
exportTextureEffect(self,
mtex=None)
Export a texture effect block from material texture mtex (MTex, not
Texture). |
source code
|
|
|
exportBSBound(self,
obj,
block_parent)
Export an Oblivion bounding box. |
source code
|
|
|
addShaderIntegerExtraDatas(self,
trishape)
Add extra data blocks for shader indices. |
source code
|
|
|
|
Inherited from nif_common.NifImportExport :
get_bone_name_for_blender ,
get_bone_name_for_nif ,
get_extend_from_flags ,
get_flags_from_extend ,
msg_progress
|