Advertisement

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

Python Scripting - Lists: How to Create, Append and Remove from a List

0

Darkfall writes:

In this video, we will be taking a look at not only creating a List but also how we can append and remove items from the List. We will also give the user the option to add to the List thanks to a String Property.

If you want to follow along you can download the Starting Template or the Finished Result, you can find the links in our blog here: https://darkfallblender.blogspot.com/2020/11/blender-python-tutorial-lists-create.html

Creating a List is simple. We just need a reference name for the List and then we can either enter some items by default or append Items when needed.

In the Example, we will not only add a number of new Items to our List but also let the user add an Item.

There are many different ways we can utilize Lists and this example is just scratching the surface of what we can do with them. In a future Video we will be using Lists for something I think is pretty interesting so be sure to look out for that!.

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.

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

×