Advertisement

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

Python Scripting - Generate Random Numbers

1

Darkfall writes:

In this video, we will be looking at how we can create a random number and then displaying that number in a Panel. We will also take a look at adding text and Icons and only displaying them based on that random number.

There are two types of Numbers we can use, Floats and Integers. These are just fancy names for Decimal or Whole Numbers.

In this example we will be using a Panel, an Operator and a Property Group, though you can use it for a number of different scenarios.

I use a template script which was created in a previous tutorial and if you want to follow along, you can download the blank template or the completed script from our blog post.

As always, I hope you find this video helpful and 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

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

×