Advertisement

You're blocking ads, which pay for BlenderNation. Read about other ways to support us.

Python Scripting - Enumerator / Drop Down Menu

1

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!.

About the Author

Avatar image for John Brook
John Brook

I make Youtube tutorials for blender Users. From CG and VFX to Animations, Shorts and Asset Creation. I upload tutorials once a week along with any assets we create for you to use in your own projects.

1 Comment

  1. Purujit Kulshreshtha on

    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?

Leave A Reply

To add a profile picture to your message, register your email address with Gravatar.com. To protect your email address, create an account on BlenderNation and log in when posting a message.

Advertisement

×