Take the 2-minute tour ×
Blender Stack Exchange is a question and answer site for people who use Blender to create 3D graphics, animations, or games. It's 100% free, no registration required.

Is it possible to launch Blender in a mode where everything that appears in the Blender Console is sent to a file?

share|improve this question
    
That's OK, mods can add the tags that are necessary to your question later. Creating new tags is generally not a good idea, because it makes organization more difficult. –  CharlesL Feb 10 at 18:41

2 Answers 2

up vote 4 down vote accepted

On Linux/Ubuntu its ./blender > myLog123.txt from the working directory.

./blender &> myLog123.txt to include Stderr.

In Python you can do

import sys
file = open(filepath, "w")
sys.stdout = file
#...
#...
sys.stdout = sys.__stdout__ #reset
file.close()

to catch the console output while your script is running.

share|improve this answer
1  
Changing sys.stdout in Python apparently catches most of the console output, but not everything. –  Garrett Feb 10 at 20:23
    
Oh that's a very cool / useful approach... will definitively try that! –  Jeepster Feb 10 at 20:54

On Windows,

  1. Open a command prompt (Windows KeyR, type cmd and hit Enter)
  2. Drag the Blender shortcut or exe onto the prompt
    C:\Users\Yourname>C:\Path\to\Blender.exe
  3. Add > %homepath%\Desktop\blender.log
  4. Hit return to start Blender with all console output redirected to blender.log on your Desktop.


For Mac and Linux, have a look here:

http://wiki.blender.org/index.php/Doc:2.6/Manual/Interface/Window_system/Console_window

share|improve this answer
    
Thanks CoDEmanX... didn't think of that one, will try too! –  Jeepster Feb 10 at 20:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.