Darkfall writes:
In this video we will be taking a look at an Enumerator also known as a drop down menu.
We will be using a template script that has a simple Panel and a blank Pop up Dialog Box Operator. If you want to download the starting script and follow along you can download it here: https://pastebin.com/JEdsTr61
Using the Enumerator we can give the user a list of options. In this example we give the User the option to choose from three different basic options. You can take this further and create more complex presets. For example, the Text Tool add on has some presets that have several lines of code to achieve the effect.
If you want to download the Text Tool Add on you can find the link in our blog here.
I hope you find this video helpful and as always thanks for Reading!.
1 Comment
Hey! Love the tutorials, man. They help me a lot with my development. I have a problem though. How do I change the values in the "item" parameter of the EnumProperty? I want to make a dropdown that lists all the objects in a scene which works until a new object is added, in which case, the script has to be run again to update the list... How do I do this?