User Tools

Site Tools


DzNodeSelectionComboBox

DAZScript combobox widget with a custom popup designed for choosing a DzNode.

More...

Inherits :

Constructors

DAZ Script
DzNodeSelectionComboBox ( DzWidget parent, String nodeType=“DzNode”, Boolean allowNone=false )

Methods

DAZ Script
voidclearNodeSelection ()
ArraygetNodes ()
DzNodegetSelectedNode ()
voidhidePopup ()
voidsetNode ( DzNode node )
voidsetNodes ( Array nodes )
voidsetSelectedNode ( DzNode node )
voidshowPopup ()

Signals

Detailed Description

Provides a DzComboBox like widget with a custom popup designed for choosing a DzNode.

Constructors


DzNodeSelectionComboBox( DzWidget parent, String nodeType=“DzNode”, Boolean allowNone=false )

Creates a node selection combobox as a child of the given parent widget.

Parameter(s):

  • parent - The widget parent for the combobox.
  • nodeType - The name of the DzNode [sub]class that root nodes must inherit to be shown in the list
  • allowNode - Whether or not to provide a “None” option in the list

Methods


void : clearNodeSelection()

Clears the selection of any node(s).

Since:

  • 4.10.0.27

Array : getNodes()

Return Value:

  • The list of nodes to be shown in the popup.

DzNode : getSelectedNode()

Return Value:

  • The node selected in the popup.

void : hidePopup()

Hide the popup.


void : setNode( DzNode node )

Sets the node from the scene to be shown in the popup.

Parameter(s):

See Also:


void : setNodes( Array nodes )

Sets the nodes from the scene to be shown in the popup.

Parameter(s):

  • nodes - A list of the DzNode objects to show.

void : setSelectedNode( DzNode node )

Sets the node from the scene to be selected.

Parameter(s):

  • node - The DzNode to select.

void : showPopup()

Display the popup.

Signals


void : nodeSelectionChanged()

Signature:“nodeSelectionChanged()”

Emitted when the selected DzNode changes.