4
$\begingroup$

Noobie here.

Should I open Mac terminal and cd to /Applications/Blender/ which is where my Blender app is? Doesn't seem to work for me trying to run script from Text screen in Blender. I guess there is no way to see output within Blender itself?

$\endgroup$
  • $\begingroup$ Related 1 2 $\endgroup$ – batFINGER Mar 11 '18 at 7:05
2
$\begingroup$

The only way to see the Blender console and thus the script output is to launch Blender from a terminal using the full path to the executable: "/Applications/Blender/blender.app/Contents/MacOS/blender"

All script output will appear in the terminal only.

Following @DickMeehan's comment and since I hate to install yet another App, here is the AppleScript to automatically start a Blender with its Terminal window.

Note: tested on MacOS High Sierra 10.13.3 only:

    set blenderAppPath to "/Applications/Blender/blender.app/Contents/MacOS/blender"

    (* This command will open a Terminal app that should be closed with CMD-Q otherwise
   it will persist after Blender and the terminal window are closed with CMD-W *)

    set openCmd to "open -n -W -a /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal --args "

    do shell script openCmd & blenderAppPath

Refer to the following to make an actual clickable App using the Automator. This app can then be simply dragged to the launch bar for convenience.

https://apple.stackexchange.com/questions/84348/how-can-i-create-a-stand-alone-app-to-run-a-terminal-command

enter image description here enter image description here

$\endgroup$
  • 1
    $\begingroup$ Please flesh this out a bit. I have a feeling the OP thinks that changing console directory fo app folder of blender while blender is running will "magically" display the output, as opposed to starting the application from the console. This answer was flagged as low-quality because of its length and content. $\endgroup$ – batFINGER Mar 11 '18 at 11:36
  • $\begingroup$ I admit, poor connectivity so quick and dirty answer... just edited, should be better now! $\endgroup$ – Bruno Mar 11 '18 at 12:37
  • $\begingroup$ Following this suggestion if I want to see output from Blender I open it from Mac terminal with this command: /Applications/Blender/blender.app/Contents/MacOS/blender . I can open Blender by clicking on the blender.app but cannot see the results in blender, I must have the terminal app loaded from the command line as above. $\endgroup$ – Dick Meehan Mar 15 '18 at 14:27
  • $\begingroup$ Thanks for the help. Just to clarify: My Blender app is in the a Blender folder within the usual Applications folder. I open Blender from the Mac terminal window by entering: /Applications/Blender/blender.app/Contents/MacOS/blender. From this point on Blender output such as print() will appear in the terminal window which should be viewed in parallel with the blender window. $\endgroup$ – Dick Meehan Mar 23 '18 at 5:05
  • $\begingroup$ Copying the path to blender and pasting into Mac terminal interrupts work flow. I found a nice free terminal emulator (one of many) called iterm that can be set up so that it opens Blender via a terminal window as above with one click. If you save your work as the default periodically via Ctrl-u and then make a coding mistake that you don't want to unravel you can just close blender and reopen via iterm you will get your most recent save with little delay. $\endgroup$ – Dick Meehan Mar 26 '18 at 5:18
1
$\begingroup$

Right click on the Blender icon in the Applications folder and select "Show Package contents". Make an alias of "Contents/MacOs/blender" by right clicking and selecting "Make Alias". Rename it and move it somewhere you like.

This opens the console in the background, next to the Blender application.

source: https://www.lynda.com/Blender-tutorials/Set-up-Blender-console-window/486043/533594-4.html

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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