Hi !
I’ve just installed the new 2.28a Blender version, and the LFExport script (which export Blender scene to LightFlow renderert) doesn’t work any more … Is there a way to use the old python API (2.26) with the Blender 2.28a ? Or is there somebody who already have ported the LFExport Scirpt ??
The old Python API (2.27 and earlier) has been completely removed and will not return. Could you describe the incompatibility problems you have? The error messages will show up in the console (dos box, unix command shell, whatever…)
I’m not sure which script version you are talking about, the old one or the last one with builtin render in a blender window, but I wouldn’t really worry about it and look for another export script. The changes needed might be trivial though, but I don’t really feel like doing it myself. if anyone else would want to do it, that’s fine by me. But I can’t really imagine that, you must be one of the very few stil trying to use it. Besides that, all the stuff that I put in there because of lack of support in the python api back then, like extracting material/texture/nurb/metaball information from a blendfile, could almost all be removed since these (except for texture info as far as I know) are now possible to do using the current api.
The external python extensions shouldn’t be a problem though, since I included versions compiled with python 2.2.
But anyway, try something like POVanim, or Yablex/extractor, these are all compatible with 2.28 as far as I know.
I did a lot of small modifs on this script and now it can
run with Blender 2.28.
But, under windows (I did no test under linux) there is
no buildin render in a blender window because of the
python C API incompatibility of the pyd files (could you
recompile them?)
The export is fine, frame alone and animation too,
it can call lightflow but the call ends the script when
it “pass the deal” to the renderer.
Well, thanks a lot for your work jms!
I’m surprised though the pyd files are incompatible, since I did include versions compiled with python 2.2, I’ll take a look at it tomorrow, but I’m not sure if it really is worth the effort, I mean, I don’t know anyone still using this, everybody has moved on to other scripts like your own POVanim, for good reasons of course.
Well, I’m a real pessimist, especially when it is about my own stuff :-? , so I don’t really see much meaning in those numbers. Sure, quite a bit of people have downloaded it (which might have something to do with that article in a French Linux magazine), but how many were succesful in installing it and actually still use it?
I tried your modified script in 228 and it works ok, except for rendering, you didn’t change all Blender.Window.Redraw calls, though 228 still seems to have the same window refresh problem like the older versions after 223. Also, there really is no need to recompile the pyd files, they work as they should. Have you made sure you ran the install script from 228 before you tried to run the LFexport script? It should find that 228 uses python2.2 and copy the python2.2 modules to your blender directory, at least it worked for me.
Anyway, I really don’t have the time to make further modifications myself, I’m very busy with yafray/blender coding and I need all the time I have for that. You decide if you want to modify it further, but you really don’t have to do that as far as I’m concerned.
But I appreciate the gesture nevertheless, thanks again jms!
Ok,
with a complete reinstallation under blender 2.28 and now using the correct 2.2 pyd modules and modifications on all other window.Redraw calls, it works perfectly!