c4d.GeListHead¶
-
class
c4d.
GeListHead
¶ Stores a list of
GeListNode
objects.New in version R19.
Methods Signatures
Creates a list head. |
Inserts node as the first element in the list. |
|
Inserts node as the last element in the list. |
|
Inserts node as a child of parent or after prev. |
|
Sets the parent of the list head.
|
|
Returns the parent of the list head.
|
|
Returns the first node in the list. |
|
Returns the last node in the list. |
|
Clears the list, removing all nodes. |
Inheritance
Parent Class:
Methods Documentation
-
GeListHead.
__init__
(self, type)¶ Creates a list head.
- Parameters
type (int) – The id of the object, e.g: (Ocube). See also: Descriptions in Cinema 4D.
- Return type
- Returns
A list head.
-
GeListHead.
InsertFirst
(self, node)¶ Inserts node as the first element in the list.
- Parameters
node (c4d.GeListNode) – The node to insert first.
-
GeListHead.
InsertLast
(self, node)¶ Inserts node as the last element in the list.
- Parameters
node (c4d.GeListNode) – The node to insert last.
-
GeListHead.
Insert
(self, node, parent, prev)¶ Inserts node as a child of parent or after prev.
- Parameters
node (c4d.GeListNode) – The node to insert.
parent (c4d.GeListNode) – The node to insert node as child.
prev (c4d.GeListNode) – The node to insert node after.
-
GeListHead.
SetParent
(self, parent)¶ - Sets the parent of the list head.Usually called directly after the list head is created.
- Parameters
parent (c4d.GeListNode) – The parent to set.
-
GeListHead.
GetParent
(self)¶ - Returns the parent of the list head.For the tag list head this would be the object, for the object list head this would be the document etc.
- Return type
- Returns
The parent, or None if the list head has no parent.
-
GeListHead.
GetFirst
(self)¶ Returns the first node in the list.
- Return type
- Returns
The first child node in the list.
-
GeListHead.
GetLast
(self)¶ Returns the last node in the list.
- Return type
- Returns
The last child node in the list.
-
GeListHead.
FlushAll
(self)¶ Clears the list, removing all nodes.