c4d.GeListHead

New in version R19.

Stores a list of GeListNode objects.

Inheritance

Members

GeListHead.__init__(type)

Creates a list head.

Return type:c4d.GeListHead
Returns:A list head.
GeListHead.InsertFirst(node)

Inserts node as the first element in the list.

Parameters:node (c4d.GeListNode) – The node to insert first.
GeListHead.InsertLast(node)

Inserts node as the last element in the list.

Parameters:node (c4d.GeListNode) – The node to insert last.
GeListHead.Insert(node, parent, prev)

Inserts node as a child of parent or after prev.

Parameters:
GeListHead.SetParent(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()

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:c4d.GeListNode
Returns:The parent, or None if the list head has no parent.
GeListHead.GetFirst()

Returns the first node in the list.

Return type:c4d.GeListNode
Returns:The first child node in the list.
GeListHead.GetLast()

Returns the last node in the list.

Return type:c4d.GeListNode
Returns:The last child node in the list.
GeListHead.FlushAll()

Clears the list, removing all nodes.