Previous Thread  Next Thread

chat icon other scripting languages?

rae

Posted: Wed Oct 16, 2002 4:53 am
Joined: 16 Oct 2002
Posts: 1
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)?
Reply with quote


jeotero

Posted: Wed Oct 16, 2002 4:56 am
Joined: 16 Oct 2002
Posts: 107
with a good blender api, anything can be done Very Happy
Reply with quote


_florian_

Posted: Wed Oct 16, 2002 9:31 am
Joined: 16 Oct 2002
Posts: 36
it's not easy to change the scripting language.
search in the source files for "PyObject".
then you see what i mean.

_florian_
Reply with quote


Timothy

Posted: Wed Oct 16, 2002 11:31 am
Joined: 29 Sep 2002
Posts: 113
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?
Reply with quote


gorgan_almighty

Posted: Wed Oct 16, 2002 12:01 pm
Joined: 16 Oct 2002
Posts: 51
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.
Reply with quote


SirDude

Posted: Wed Oct 16, 2002 12:28 pm
Joined: 13 Oct 2002
Posts: 939
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.
Reply with quote


sasKuach

Posted: Wed Oct 16, 2002 10:16 pm
Joined: 16 Oct 2002
Posts: 15
What's wrong with Python? Question
Reply with quote


PhaethonH

Posted: Wed Oct 16, 2002 11:35 pm
Joined: 15 Oct 2002
Posts: 10
sasKuach wrote:
What's wrong with Python? Question


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.
Reply with quote


sasKuach

Posted: Thu Oct 17, 2002 1:57 am
Joined: 16 Oct 2002
Posts: 15
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.
Reply with quote


 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group