Home | Trees | Indices | Help |
|
---|
|
object --+ | utils.graph.DetailNode --+ | utils.graph.GlobalNode --+ | object_models.xml.struct_.StructBase --+ | NifFormat._NiObject --+ | NifFormat.NiObject --+ | NifFormat._NiObjectNET --+ | NifFormat.NiObjectNET
|
|||
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 |
|
|
Set all extra data blocks from given list (erases existing data). >>> from pyffi.formats.nif import NifFormat >>> node = NifFormat.NiNode() >>> extra1 = NifFormat.NiExtraData() >>> extra1.name = "hello" >>> extra2 = NifFormat.NiExtraData() >>> extra2.name = "world" >>> node.get_extra_datas() [] >>> node.set_extra_datas([extra1, extra2]) >>> [extra.name for extra in node.get_extra_datas()] ['hello', 'world'] >>> [extra.name for extra in node.extra_data_list] ['hello', 'world'] >>> node.extra_data is extra1 True >>> extra1.next_extra_data is extra2 True >>> extra2.next_extra_data is None True >>> node.set_extra_datas([]) >>> node.get_extra_datas() [] >>> # now set them the other way around >>> node.set_extra_datas([extra2, extra1]) >>> [extra.name for extra in node.get_extra_datas()] ['world', 'hello'] >>> [extra.name for extra in node.extra_data_list] ['world', 'hello'] >>> node.extra_data is extra2 True >>> extra2.next_extra_data is extra1 True >>> extra1.next_extra_data is None True
|
|
_attribute_list
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Oct 10 19:03:43 2011 | http://epydoc.sourceforge.net |