Scripting in Blender with Python, and working on the API
Moderators: jesterKing, stiv
-
lukasbalaz
- Posts: 0
- Joined: Mon Nov 05, 2012 4:23 pm
Post
by lukasbalaz » Tue Nov 06, 2012 2:11 pm
Is it possible to use C++ scripts in blender or do exist some updates for it?
(Sorry for my English. I'm Slovak.)
-
stiv
- Posts: 0
- Joined: Tue Aug 05, 2003 7:58 am
- Location: 45N 86W
Post
by stiv » Tue Nov 06, 2012 4:41 pm
Blender uses Python for its scripting language.
-
lukasbalaz
- Posts: 0
- Joined: Mon Nov 05, 2012 4:23 pm
Post
by lukasbalaz » Thu Nov 08, 2012 8:06 pm
I know it, but I want to use C++. Is it really impossible?
-
stiv
- Posts: 0
- Joined: Tue Aug 05, 2003 7:58 am
- Location: 45N 86W
Post
by stiv » Thu Nov 08, 2012 8:12 pm
Is it really impossible?
It's software. It's only impossible if it violates the Laws of Thermodynamics.
C++ is a compiled language, not an interpreted scripting language. You can already write C/C++ code to extend Blender. It is how new features like tracking get added.
Replacing Blender's Python interpreter with another language can be done. It is a lot of work.
-
CoDEmanX
- Posts: 0
- Joined: Sun Apr 05, 2009 7:42 pm
- Location: Germany
Post
by CoDEmanX » Fri Nov 09, 2012 2:44 pm
You can add own code to Blender, but there is currently no plugin system, so you have to apply your changes and compile the whole application.
I'm sitting, waiting, wishing, building Blender in superstition...
-
ldo
- Posts: 0
- Joined: Sun Nov 07, 2010 11:30 pm
- Location: Hamilton, New Zealand
Post
by ldo » Sun Nov 25, 2012 3:32 am
Write your C++ code as a Python module, and invoke it from a script within Blender.