other scripting languages?

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

rae
Posts: 1
Joined: Wed Oct 16, 2002 4:40 am

other scripting languages?

Postby rae » Wed Oct 16, 2002 5:53 am

How tied to Python is Blender? How difficult would it be to make it scripting-language-neutral so that people could "plug in" other scripting languages (like Perl or tcl for example)?

jeotero
Posts: 107
Joined: Wed Oct 16, 2002 5:31 am

Postby jeotero » Wed Oct 16, 2002 5:56 am

with a good blender api, anything can be done :D

_florian_
Posts: 36
Joined: Wed Oct 16, 2002 10:17 am

Re: other scripting languages?

Postby _florian_ » Wed Oct 16, 2002 10:31 am

it's not easy to change the scripting language.
search in the source files for "PyObject".
then you see what i mean.

_florian_

Timothy
Posts: 119
Joined: Sun Sep 29, 2002 3:20 pm
Contact:

Postby Timothy » Wed Oct 16, 2002 12:31 pm

I would think you would want to avoid adding this complexity.

A language like python is pretty easy to learn for any experienced programmer. But implementing several scripting languages, and supporting all of them properly with documentation, and keeping their api's compatible? that sounds like alot of work, perhaps work better spend in other areas of blender?

gorgan_almighty
Posts: 51
Joined: Wed Oct 16, 2002 12:26 pm
Location: Kent, UK

Postby gorgan_almighty » Wed Oct 16, 2002 1:01 pm

The Perl interpreter is open-source isn't it?

If so then you would just have to include its source code in the blender source code and write some extra code to envoke it at the right time.

Personally i think python is a much nicer language than Perl though.

SirDude
Posts: 941
Joined: Sun Oct 13, 2002 7:37 pm
Location: University of Minnesota (USA)
Contact:

Postby SirDude » Wed Oct 16, 2002 1:28 pm

Not that I'm saying it should be done but I would be for perl as an option to
python.

If anyone is going to seriously tackle this take a look at swig.
http://www.swig.org/

Its basically a tool to help you write wrappers/interfaces for various languages and should simplify the multiple languages problem quite a bit.

sasKuach
Posts: 15
Joined: Wed Oct 16, 2002 1:51 am
Contact:

Postby sasKuach » Wed Oct 16, 2002 11:16 pm

What's wrong with Python? :?:

PhaethonH
Posts: 10
Joined: Tue Oct 15, 2002 11:13 pm
Location: Los Angeles, California, USA
Contact:

Postby PhaethonH » Thu Oct 17, 2002 12:35 am

sasKuach wrote:What's wrong with Python? :?:


There isn't anything wrong with python per se; I think some people just aren't comfortable/happy with the idea of having only a _single_ extensible language.

sasKuach
Posts: 15
Joined: Wed Oct 16, 2002 1:51 am
Contact:

Postby sasKuach » Thu Oct 17, 2002 2:57 am

I see your point. The easiest thing I can think of to solve that is to use binary plugins (like texture plugins, for ex) that are compiled from any language the user desires.


Return to “Python”

Who is online

Users browsing this forum: No registered users and 0 guests