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