User Tools

Site Tools


DzInstanceGroupNode

A node for grouping multiple lightweight clones of a node in the scene.

More...

Inherits :

Constructors

DAZ Script
DzInstanceGroupNode ()

Methods

Detailed Description

An instance group node is used to group multiple lightweight clones of the same DzNode (subclass) in the scene that has a DzObject. These lightweight clones are drawn the same as the node that they are a clone of with the exception of their individual transforms.

See Also:

Constructors


DzInstanceGroupNode()

Default Constructor.

Methods


void : beginItemEdit()

Begin edit of this node.

Attention:

  • If adding or removing many items from this node it is more efficient to call beginItemEdit() do edits and call finishItemEdit() when done.

See Also:


void : clearItems()

Return Value:

  • Removes all items from this node.

DzInstanceGroupItem : createItem()

Return Value:

  • A new instance group item.

Number : findIndexForItem( DzInstanceGroupItem item )

Parameter(s):

  • item - The item to get the index for.

Return Value:

  • The index for the given item or -1 if it does not belong to this node.

void : finishItemEdit()

Finish edit of this node.

See Also:


DzInstanceGroupItem : getGroupItem( Number index )

Parameter(s):

  • index - The index of the item to get the group of.

Return Value:

  • The group item at the given index or null if it does not exist.

Number : getNumberOfGroupItems()

Return Value:

  • The number of group items.

Boolean : isEditingItems()

Return Value:

  • true if in beginItemEdit/finishItemEdit session

void : removeItem( Number index )

Parameter(s):

  • index - The index of the item to remove.

Return Value:

  • Removes and deletes the item at the given index.