$begingroup$
I don´t understand why I get this error message:
Python script fail, look in the console for now
I only put this piece of code in the scripting window:
import bge
bge.render.drawLine([0,0,0],[10,10,10],[255,40,0])
Is supposed I get error information from the console? Because I dind´t get it.
asked Jan 6, 2018 at 18:19
$endgroup$
$begingroup$
You will need to open the system console, which is found by going to the Window menu at the top and choosing Toggle System Console. Do note that closing the console via the X button at the top right will close Blender as well, so if you want to close the console use the Toggle System Console menu option again.
EDIT: I just tried the code you have and it works fine. I think your issue is how you are trying to execute the code. To execute this code in the BGE you will need to have an object that has a sensor (such as an always sensor with true level triggering enabled) connected to a python controller with your script selected.
Then play your game and you will see your line. Simply running the script via the text editor will cause it to fail.
answered Jan 6, 2018 at 18:30
BrenticusBrenticus
6,8151 gold badge12 silver badges18 bronze badges
$endgroup$
4
$begingroup$
For the people saying that «There is no Window -> Toggle System Console
entity in Blender». Then I presume you are on macOS or Linux and will have to open Blender from your systems terminal.
On macOS you would
- Find Blender.app
- Right click and show package content
- Navigate to «Contents/MacOS/»
- Drag the «Blender» file into a terminal window
- Press enter to start, your output will now be seen in that window.
On Linux:
cd /usr/share/applications
gtk-launch blender.desktop
answered Sep 17, 2020 at 11:58
JerakinJerakin
2502 silver badges5 bronze badges
$endgroup$
3
You must log in to answer this question.
Not the answer you’re looking for? Browse other questions tagged
.
Not the answer you’re looking for? Browse other questions tagged
.
2020-08-16
Blender
Tips
This is for beginners.
Error Detail
When I ran python script below in blender, the error message “python script failed check the message in the system console” is displayed.
import bpy.data print(bpy.data.objects)
Solution
Open the system console and check the message but where is the system console?
How to open the system console
Click Window > Toggle System Console
You can see the message on the generated window.
Get the Reddit app
Log In
Log in to Reddit
Open settings menu
-
Log In / Sign Up
-
Advertise on Reddit
Loading
При появлении каких-либо ошибок в процессе работы, Blender выводит текст ошибки в системную консоль, сопровождая это действие сообщением вида:
“… errors in … (see Blender Console)”
“… обнаружена ошибка… (смотри консоль Blender)”
Что это за “консоль”, в которой нужно смотреть полную расшифровку текста ошибки?
Путаница происходит из-за того, что в интерфейсе Blender есть несколько консолей разных типов, и поначалу совершенно непонятно, в какую из них нужно смотреть при появлении ошибок. Чаще всего системную консоль путают с консолью Blender Python или же с консолью Info.
Подробные сведения об ошибках в этих консолях не отображаются!
Для того, чтобы вызвать на экран нужную системную консоль с текстом ошибки, нужно в главном меню Blender выбрать:
Window – Toggle System Console
При этом откроется новое окно с нужной консолью, в которой будет приведен полный текст ошибки.