Print To Python Console

by Nikita Akimov in Scripts and Addons


Blender 3D add-on for redirecting the print output and the error messages to the Python Console window.


Add-on functionality

To display errors and print output in the Python Console window just install and activate the addon.


Two buttons in the add-on "PtoPC" panel are used to temporarily activating and deactivating output redirection to the Python Console. By clicking the "Print to System Console" button, the errors and the text output will be returned back to default - only to the system console. Pressing the "Print to Python Console" button will enable output to the Python Console.


In the add-on's properties panel, you can enable/disable output to the Python Console separately for error messages and the print function.


Known issues

This add-on cannot be used with the event handlers "depsgraph_update_post" and "depsgraph_update_pre" having the print function or errors in them. Text output to the Python Console raises the depsgraph_update event itself, so this results in an infinite recursion Blender crash.

Solution: temporarily disable output to the Python Console working with depsgraph_update events. 


Couldn't write to the Python console from the operator's draw function.

Solution: see the system console


Blender versions

2.82, 2.83, 2.90, 2.91


Location

“3D Viewport” window – N-panel – the “PtoPC” tab


Current add-on version

1.0.2.

Sales 30+
Dev Fund Contributor
Published over 1 year ago
Software Version 2.82, 2.83, 2.9, 2.91
License GPL
Have questions before purchasing?

Contact the Creator with your questions right now.

Login to Message