Thread Rating:
  • 0 Vote(s) - 0 Average
Settings help
#1
If I have the setting:
Code:
<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.
Changelog
Reply
#2
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.
Reply
#3
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.
Changelog
Reply



Logout Mark Read Team Forum Stats Members Help
Settings help00