Package pyffi :: Package formats :: Package nif :: Class NifFormat :: Class _NiMaterialProperty
[hide private]
[frames] | no frames]

Class _NiMaterialProperty

source code

                  object --+                                
                           |                                
      utils.graph.DetailNode --+                            
                               |                            
          utils.graph.GlobalNode --+                        
                                   |                        
object_models.xml.struct_.StructBase --+                    
                                       |                    
                     NifFormat._NiObject --+                
                                           |                
                          NifFormat.NiObject --+            
                                               |            
                          NifFormat._NiObjectNET --+        
                                                   |        
                               NifFormat.NiObjectNET --+    
                                                       |    
                                    NifFormat.NiProperty --+
                                                           |
                                                          NifFormat._NiMaterialProperty
Known Subclasses:

Describes the material shading properties.
Nested Classes [hide private]

Inherited from object_models.xml.struct_.StructBase: __metaclass__

Instance Methods [hide private]

Inherited from NiObjectNET: add_controller, add_extra_data, add_integer_extra_data, get_controllers, get_extra_datas, remove_extra_data, set_extra_datas

Inherited from NiObject: apply_scale, find, find_chain, is_interchangeable, tree

Inherited from NiObject (private): _validateTree

Inherited from object_models.xml.struct_.StructBase: __init__, __str__, deepcopy, fix_links, get_attribute, get_basic_attribute, get_detail_child_names, get_detail_child_nodes, get_global_child_nodes, get_global_display, get_hash, get_links, get_refs, get_size, get_strings, get_template_attribute, read, replace_global_node, set_attribute, set_basic_attribute, set_template_attribute, write

Inherited from utils.graph.GlobalNode: get_global_child_edge_types, get_global_iterator

Inherited from utils.graph.DetailNode: get_detail_child_edge_types, get_detail_display, get_detail_iterator

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from object_models.xml.struct_.StructBase: get_games, get_versions

Class Variables [hide private]
  _attribute_list = [<pyffi.object_models.xml.StructAttribute ob...
  _attrs = [<pyffi.object_models.xml.StructAttribute object at 0...
  _names = ['name', 'has_old_extra_data', 'old_extra_prop_name',...

Inherited from NiProperty (private): _games, _is_template

Inherited from _NiObjectNET (private): _has_links, _has_refs, _has_strings

Inherited from object_models.xml.struct_.StructBase: arg

Properties [hide private]
  alpha
The material transparency (1=non-transparant).
  ambient_color
How much the material reflects ambient light.
  diffuse_color
How much the material reflects diffuse light.
  emissive_color
How much light the material emits.
  emit_multi
Unknown
  flags
Property flags.
  glossiness
The material's glossiness.
  specular_color
How much light the material reflects in a specular manner.

Inherited from _NiObjectNET: controller, extra_data, extra_data_list, has_old_extra_data, name, num_extra_data_list, old_extra_internal_id, old_extra_prop_name, old_extra_string, unknown_byte

Inherited from object: __class__

Class Variable Details [hide private]

_attribute_list

Value:
[<pyffi.object_models.xml.StructAttribute object at 0x2db5cd0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2db5d10>,
 <pyffi.object_models.xml.StructAttribute object at 0x2db5d90>,
 <pyffi.object_models.xml.StructAttribute object at 0x2db5e90>,
 <pyffi.object_models.xml.StructAttribute object at 0x2db5f90>,
 <pyffi.object_models.xml.StructAttribute object at 0x2dbb050>,
 <pyffi.object_models.xml.StructAttribute object at 0x2dbb090>,
 <pyffi.object_models.xml.StructAttribute object at 0x2dbb0d0>,
...

_attrs

Value:
[<pyffi.object_models.xml.StructAttribute object at 0x2eb3b50>,
 <pyffi.object_models.xml.StructAttribute object at 0x2eb3b90>,
 <pyffi.object_models.xml.StructAttribute object at 0x2eb3d50>,
 <pyffi.object_models.xml.StructAttribute object at 0x2eb9090>,
 <pyffi.object_models.xml.StructAttribute object at 0x2eb90d0>,
 <pyffi.object_models.xml.StructAttribute object at 0x2eb9110>,
 <pyffi.object_models.xml.StructAttribute object at 0x2eb9190>,
 <pyffi.object_models.xml.StructAttribute object at 0x2eb91d0>]

_names

Value:
['name',
 'has_old_extra_data',
 'old_extra_prop_name',
 'old_extra_internal_id',
 'old_extra_string',
 'unknown_byte',
 'extra_data',
 'num_extra_data_list',
...

Property Details [hide private]

alpha

The material transparency (1=non-transparant). Refer to a NiAlphaProperty object in this material's parent NiTriShape object, when alpha is not 1.
Get Method:
<functools.partial object at 0x2eb79f0>
Set Method:
<functools.partial object at 0x2eb7a48>

ambient_color

How much the material reflects ambient light.
Get Method:
<functools.partial object at 0x2eb74c8>
Set Method:
<functools.partial object at 0x2eb7520>

diffuse_color

How much the material reflects diffuse light.
Get Method:
<functools.partial object at 0x2eb75d0>
Set Method:
<functools.partial object at 0x2eb7628>

emissive_color

How much light the material emits.
Get Method:
<functools.partial object at 0x2eb77e0>
Set Method:
<functools.partial object at 0x2eb7838>

emit_multi

Unknown
Get Method:
<functools.partial object at 0x2eb7af8>
Set Method:
<functools.partial object at 0x2eb7b50>

flags

Property flags.
Get Method:
<functools.partial object at 0x2eb73c0>
Set Method:
<functools.partial object at 0x2eb7418>

glossiness

The material's glossiness.
Get Method:
<functools.partial object at 0x2eb78e8>
Set Method:
<functools.partial object at 0x2eb7940>

specular_color

How much light the material reflects in a specular manner.
Get Method:
<functools.partial object at 0x2eb76d8>
Set Method:
<functools.partial object at 0x2eb7730>