Skip to main content
Legend
January 27, 2016
Answered

How to access label of dropdown property?

  • January 27, 2016
  • 1 reply
  • 824 views

Hi Everyone!

I thought this would be simple enough, but can't seem to find an answer in my research so I thought I would ask on here.  I'm needing to get the label of a dropdown for an effect's parameter. 

I can use the following to get the index of the selection in the dropdown returned:

myLayer.effect("Effect Match Name")("Dropdown Param Name").value

However, I want the label that is in the actual dropdown, not the index value.  Is there any way to retrieve that or do I just need to create some kind of enum array and do a lookup?

Thanks,
Arie

This topic has been closed for replies.
Correct answer David Torno
do I just need to create some kind of enum array and do a lookup?

Yup, the index is the only data you can get.

1 reply

David TornoCorrect answer
Legend
January 28, 2016
do I just need to create some kind of enum array and do a lookup?

Yup, the index is the only data you can get.

Legend
February 3, 2016

Okay, thanks for clarifying, David.  Much appreciated!