Thread Rating:
  • 0 Vote(s) - 0 Average
Settings help
If I have the setting:
<setting id="refresh_queue" type="enum" label="30019" values="2|5|10|15|30" default="3"/>
In the settings file you get either 0,1,2,3,4. How can these be translated back to the values 2,5,10,15,30 for use in the addon python code? Is there a way to store these values in the setting file as 2,5,10,15,30 instead of 0,1,2,3,4 for easy retrieval?
Read this before using these builds.
How about using a list in python:

a = [2, 5, 10, 15, 30] <-inside your python program.

then testing from you setting value: a[setting]
to get the setting your wanted setting.
Thanks, but I got the answer I was hoping for from Amet. Use labelenum instead of just enum. Then I can store the actual values instead of the iteration of enum.
Read this before using these builds.

Logout Mark Read Team Forum Stats Members Help
Settings help00