gjinka wrote:
And I'm a proud Python user. I usually use my game engine for testing, but I can use the old Blender too. I don't know anything about Noesis python library. I couldn't find any docs.
I find myself using only like 5-6 functions in noesis to get most of the stuff done.
Mainly cause I don't know what to do with the rest of the data, but I don't really need to use too many things for simple things like exporting geometry.
But ya, 5-6 functions is enough to get geometry out. Maybe another 2-3 functions would get bones and weights, and maybe another 2-3 to get animations.
You can use this template that I wrote. It provides a simple model loading function based on the example provided and should get most stuff done. Once you realize you need more functions to render more stuff you should be familiar with the library enough.
http://xtsukihime.webs.com/Noesis%20Plu ... emplate.py
This is assuming you're using the rapi function calls. .
You can look at how repetitive the plugins end up being, especially if you start splitting up everything into different functions:
http://xtsukihime.webs.com/noesisplugins.htm
Note: the model template up there is not tested. I don't actually use that one, because it forces me to remember API functions like getting the input name, getting the directory path of the input, etc. It was just me taking the template I use, removing all references to the custom object, and copying the constructor over.
I use this one:
http://xtsukihime.webs.com/Noesis%20Plu ... e_sanae.py
Which requires the package in my sig. It's pretty much the same thing except I can add stuff that tailor to my own preferences also in an attempt to write readable code (eg: self.filename vs rapi.getLocalFileName(rapi.getInputName())