Graphics Reference
In-Depth Information
Figure 12-4 The System Console under Windows
TheSystemConsoleequivalentinMacOSXistheTerminal,anditcanbeaccessedbyexecuting Applic-
ations/Utilities/Terminal.app .ItwillreturninformationfromBlenderonlyifBlenderwasopened
via Terminal. To do this, right-click blender.app , choose Show Package Contents, and navigate to Con-
tents/Mac0S/blender . This Unix executable file will open Blender, but unlike blender.app it will
open via the Terminal, thus enabling the Terminal to return commands. For frequent Blender scripting, add this
icon to your dock as a shortcut.
In Linux, the only system console available is the command-line terminal itself. To see the standard output
and error messages from Blender, you need to execute Blender from the command-line terminal. Executing
Blender from a terminal will also work in OS X.
Using the Text Editor
Generally, of course, programs are not executed one line at a time in a command-line environment. The norm is
to write a script in a file and to execute that script by sending it to the interpreter (or calling it from within the
interpreter, which amounts to the same thing). You can create a Python script with any ordinary text editor, but
the simplest place to write Blender scripts is in Blender's own text editor window.
 
Search WWH ::




Custom Search