Populate enum in settings with code

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
nilzen Offline
Member
Posts: 62
Joined: Dec 2009
Reputation: 2
Location: SkellefteƄ, Sweden
Post: #1
Is it possible to create a dynamic enum in the addon settings that I populate from python code?
find quote
Bstrdsmkr Offline
Posting Freak
Posts: 802
Joined: Oct 2010
Reputation: 16
Post: #2
Sort of, but it's not pretty. Basically, you write the settings.xml file to disk from within your code.
find quote
nilzen Offline
Member
Posts: 62
Joined: Dec 2009
Reputation: 2
Location: SkellefteƄ, Sweden
Post: #3
(2012-03-26 18:17)Bstrdsmkr Wrote:  Sort of, but it's not pretty. Basically, you write the settings.xml file to disk from within your code.

You're right not pretty, but a clever solution! Smile
find quote