3
$\begingroup$

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?

$\endgroup$

1 Answer 1

5
$\begingroup$

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 <[email protected]>
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
/u/buhr$

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

$\endgroup$
1
  • 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
    Commented Dec 1, 2019 at 18:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .