python/blender
Posted: Tue Apr 03, 2007 11:37 pm
I think we should be able to write a TGEA or other format export in Python. Perhaps some open source code to do this already exists out there, and could be adapted to work from L3DT.
As for integrating L3DT and Blender to work together through Python, this could be possible with some kind of inter-app communication - keep in mind both cdPython and Blender will have their own Python interpreters, so effectively they would be running two separate Python programs. I'm guessing here, but I think you would have to write two Python scripts and get them to communicate through pipes or sockets or something, you could probably serialize and pass objects between two Python programs using the "pickle" facility. But I'm not sure there's any point to what I have just suggested, because L3DT generates static data, and the exercise would ultimately deliver little benefit.
Exporting to a file that Blender can use is a great subject for a Python script. If someone can provide file formats, then let's see them and have a go!
As for integrating L3DT and Blender to work together through Python, this could be possible with some kind of inter-app communication - keep in mind both cdPython and Blender will have their own Python interpreters, so effectively they would be running two separate Python programs. I'm guessing here, but I think you would have to write two Python scripts and get them to communicate through pipes or sockets or something, you could probably serialize and pass objects between two Python programs using the "pickle" facility. But I'm not sure there's any point to what I have just suggested, because L3DT generates static data, and the exercise would ultimately deliver little benefit.
Exporting to a file that Blender can use is a great subject for a Python script. If someone can provide file formats, then let's see them and have a go!