I tried to search for this up and down with no success..

In blender 2.8, for the "Python Console" editor type, under the "View" menu, there is a submenu named "Languages..." that expands with one only option, "Python". As far as I know the only available scripting language is Python, and last time I checked there were absolutely no plans to ever include any other scripting language, so what would be the purpose of that menu?


Well, Blender has lots of submenus and options that serve no apparent purpose, so...

Anyway, Blender source code is managed by the Git version-control system which maintains a history of changes as a series of "commits". In this case, the commit that added this menu is documented as follows:

commit ddeb9f8e24da6076ed76be1573cc152def5751ae
Author: Campbell Barton <ideasman42@gmail.com>
Date:   Fri Nov 6 23:53:40 2009 +0000

    - added console language type
    - separated python console from the interactive console
    - added shell console type (simple example)
    - console types are autodetected and can be selected in the menu

So, a decade ago, one of the lead Blender developers thought that having support for multiple console languages might be useful.

There's still some dead code around, so you can enter the following in a Python Console to get a Bash shell:

>>> bpy.context.space_data.language='shell'
>>> bpy.ops.console.language()
/bin/sh: 1: Syntax error: Bad function name

After this, "Python" and "Shell" will appear in the View->Language menu, and you can toggle between them. Have fun!

  • 2
    $\begingroup$ Remember finding this in comments of console ops. and thinking excellent can use it for editing with vi only to find another way to lock blender instead. $\endgroup$
    – batFINGER
    Dec 1 '19 at 18:00

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.