<node3d:GUI:droplist>.getItem

This action will return the text of the specified item.

 

<node3d:GUI:droplist>.getItem(
    index    

)

 

index

The zero-based index of the item.


Remarks

This command will return the text for the item at the specified index. If the index is invalid, an empty string will be returned.

Return Value

The text of the specified item

Example

list = viz.addDropList()
list.setPosition(.5,.5)
options = ['A','B','C','D']
list.addItems(options)
print list.getItem(0) #Outputs A