User Tools

Site Tools


DzInstanceGroupNode

A class for creating multiple instances of another node.

More...

Inherits :

Constructors

DAZ Script
DzInstanceGroupNode ()

Methods

Detailed Description

This class can be used to create a multiple instances of another DzNode (subclass) that also has a DzOobject. These instances are drawn the same as the target node except for transforms.

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.