Advertisement

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

Python Scripting - How to Display Info / Error Messages

0

Darkfall writes:

In this Video, we will be looking at how we can display messages to the user. This can be simple Info messages to Error messages and more.

This can also be used to help debug your scripts and print messages and/or numbers to let you know what is happening.

As always if you want to follow along you can find the template and/or the finished script in our blog here: https://darkfallblender.blogspot.com/2020/12/blender-python-tutorial-how-to-display.html

We can display the Message as 'INFO', which will display our message along with the Info Icon in the bottom right of Blender and in the Info Window. We can display the message as 'WARNING', which will change the color of the message to yellow along with the icon. We can also display the message as an 'ERROR', this will not only change the color of our message and the Icon but it will also add a pop up message in the Window.

We can also display properties such as Numbers as we see in the video. This can be especially useful to allow the user to see more information.

I hope you find this quick 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

×