| Home | Trees | Indices | Help | 
        
  | 
  
|---|
| 
       | 
  
                  object --+                                
                           |                                
      utils.graph.DetailNode --+                            
                               |                            
          utils.graph.GlobalNode --+                        
                                   |                        
object_models.xml.struct_.StructBase --+                    
                                       |                    
                     NifFormat._NiObject --+                
                                           |                
                          NifFormat.NiObject --+            
                                               |            
                          NifFormat._NiObjectNET --+        
                                                   |        
                               NifFormat.NiObjectNET --+    
                                                       |    
                                   NifFormat._NiAVObject --+
                                                           |
                                                          NifFormat.NiAVObject
>>> from pyffi.formats.nif import NifFormat >>> node = NifFormat.NiNode() >>> prop1 = NifFormat.NiProperty() >>> prop1.name = "hello" >>> prop2 = NifFormat.NiProperty() >>> prop2.name = "world" >>> node.get_properties() [] >>> node.set_properties([prop1, prop2]) >>> [prop.name for prop in node.get_properties()] ['hello', 'world'] >>> [prop.name for prop in node.properties] ['hello', 'world'] >>> node.set_properties([]) >>> node.get_properties() [] >>> # now set them the other way around >>> node.set_properties([prop2, prop1]) >>> [prop.name for prop in node.get_properties()] ['world', 'hello'] >>> [prop.name for prop in node.properties] ['world', 'hello'] >>> node.remove_property(prop2) >>> [prop.name for prop in node.properties] ['hello'] >>> node.add_property(prop2) >>> [prop.name for prop in node.properties] ['hello', 'world']
    
  | 
|||
| 
     Inherited from   | 
  |||
    
  | 
|||
      
  | 
  |||
      
  | 
  |||
| list of L{NifFormat.NiProperty} | 
      
  | 
  ||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
      
  | 
  |||
| 
     Inherited from  Inherited from  Inherited from  Inherited from  Inherited from  Inherited from  Inherited from  Inherited from   | 
  |||
    
  | 
|||
| 
     Inherited from  Inherited from   | 
  |||
    
  | 
|||
        _attribute_list = 
     | 
  |||
| 
     Inherited from  Inherited from  Inherited from   | 
  |||
    
  | 
|||
| 
     Inherited from  Inherited from  Inherited from   | 
  |||
    
  | 
|||
  
 
  | 
  
 
  | 
  
 
  | 
  
 
  | 
  
 
  | 
  
 
  | 
  
 
  | 
    
  | 
|||
  _attribute_list
  | 
| Home | Trees | Indices | Help | 
        
  | 
  
|---|
| Generated by Epydoc 3.0.1 on Mon Oct 10 19:03:37 2011 | http://epydoc.sourceforge.net |