Is it possible to convert older 2.4x scripts to 2.65a?

Scripting in Blender with Python, and working on the API

Moderators: jesterKing, stiv

Post Reply
Elroy
Posts: 0
Joined: Mon Dec 31, 2012 10:47 am

Is it possible to convert older 2.4x scripts to 2.65a?

Post by Elroy » Tue Jan 22, 2013 12:21 pm

I know the API has changed quite a bit, but is there a step by step process to port older scripts to what Blender is currently using? Are there any sources to describe how to revise an existing script to port it for use with Blender 2.65a? I guess that might be a good project for someone to make somekind of python script for doing automated tasks like this :?:

CoDEmanX
Posts: 0
Joined: Sun Apr 05, 2009 7:42 pm
Location: Germany

Post by CoDEmanX » Wed Jan 23, 2013 12:04 am

there's neither a converter nor is there a migration guide.

And i really recommend to rewrite 2.4x scripts for 2.5x and later, the API changed too drastically to port anything. It is possible, but looks horrible (in terms of code aesthetic), doesn't comply to the new API paradigms and wouldn't benefit from any of the new utilities (no need to define matrix helper functions any longer since we got a comprehensive mathutils.Matrix type).

A good point to learn the new API is the documentation:
http://www.blender.org/documentation/250PythonDoc/

and also the IO addons included with blender.
I'm sitting, waiting, wishing, building Blender in superstition...

Post Reply