pyffi :: spells :: nif :: modify :: SpellDelSkinShapes :: Class SpellDelSkinShapes
[hide private]
[frames] | no frames]

Class SpellDelSkinShapes

source code

object --+            
         |            
     Spell --+        
             |        
      NifSpell --+    
                 |    
  SpellDelBranches --+
                     |
                    SpellDelSkinShapes

Delete any geometries with a material name of 'skin'
Instance Methods [hide private]
 
is_branch_to_be_deleted(self, branch)
Returns True for those branches that must be deleted.
source code
bool
branchinspect(self, branch)
Like _branchinspect, but for customization: can be overridden to perform an extra inspection (the default implementation always returns True).
source code

Inherited from SpellDelBranches: branchentry

Inherited from SpellDelBranches (private): _branchinspect

Inherited from NifSpell: inspectblocktype

Inherited from NifSpell (private): _datainspect

Inherited from Spell: __init__, branchexit, dataentry, dataexit, datainspect, recurse

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

Class Methods [hide private]

Inherited from Spell: get_toast_stream, toastentry, toastexit

Class Variables [hide private]
  SPELLNAME = 'modify_delskinshapes'
A str describing how to refer to the spell from the command line.

Inherited from SpellDelBranches: READONLY

Inherited from Spell: changed, data, stream, toaster

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

is_branch_to_be_deleted(self, branch)

source code 
Returns True for those branches that must be deleted. The default implementation returns True for branches that are not admissible as specified by include/exclude options of the toaster. Override in subclasses that must delete specific branches.
Overrides: SpellDelBranches.is_branch_to_be_deleted
(inherited documentation)

branchinspect(self, branch)

source code 
Like _branchinspect, but for customization: can be overridden to perform an extra inspection (the default implementation always returns True).
Parameters:
  • branch - The branch to check.
Returns: bool
True if the branch must be processed, False otherwise.
Overrides: Spell.branchinspect
(inherited documentation)