The Python modules are self documentable. Each function has a doc property, which are called docstrings, that contains information about that function (or module/class/anything).
unfortunately choosing Object or NMesh is forcing Blender to crash (WinXP, Blender2.23); I´ve tried to walk down the Object-chain manually, but recursion and maybe other things also cause a crash.
EDIT: I changed to 2.12 and everything works fine now
exactly, you can only access mesh (well, only partly true. You can access beziers, but only for IPOs)
[/quote]
I just found this out the hard way …
I have a Python function that generates X/Y/Z points for a bezier curve. I really need to be able to programmatically generate a bezier, but if I create one manually and do a “print obj.getType()” from my curve, I get “<Unsupported>”.
Does anyone know of another way I can generate a curve from Python? I really need a bezier because I have to extrude a cross-section along its length.
Failing that; I could manually position each point. Tedious, but it would work. In which case, how do I input absolute X/Y/Z positions for points in a curve?
Hi,
I tried running that doc browser script, and like Florian, it crashes when I try to browse NMesh or Object in 2.23… I’ve tried opening it up in versions 2.12, 2.20 and 2.22 but they always say “No module named types” when I try to run the script…