User Tools

Site Tools


DzElementData

Methods

DAZ Script
DzElementDataduplicate ( DzElement owner )
DzElementgetOwner ()

Signals

voidaddedToElement ( DzElement owner )
voidelementDeleting ( DzElement formerOwner )
voidremovedFromElement ( DzElement formerOwner )

Detailed Description

Implements a custom data item that allows named data to be associated with an element of the scene.

See Also:

Methods


DzElementData : duplicate( DzElement owner )

Parameter(s):

  • owner - The element to duplicate this data item on.

Return Value:

  • A duplicate of this data item that can be added to the given owner (if any), otherwise null.

DzElement : getOwner()

Return Value:

  • The element that this data item is associated with (if any), otherwise null.

Signals


void : addedToElement( DzElement owner )

Signature:“addedToElement(DzElement*)”

Emitted when this data item is added to an element.

Parameter(s):

  • owner - This data item's new owner.

Since:

  • 4.12.0.72

void : elementDeleting( DzElement formerOwner )

Signature:“elementDeleting(DzElement*)”

Emitted when this data item's owner is deleting, before this data item itself is deleted.

Parameter(s):

  • formerOwner - This data item's former owner that is being deleted.

Attention:

  • Calling functions defined in DzElement or its subclasses on formerOwner has undefined behavior, as it is in process of being deleted.

Since:

  • 4.12.0.72

void : removedFromElement( DzElement formerOwner )

Signature:“removedFromElement(DzElement*)”

Emitted when this data item is removed from an element.

Parameter(s):

  • formerOwner - This data item's former owner.

Since:

  • 4.12.0.72