OK, I’m delving into some python scripts today. Other than the stock scripts included with blender, that is.
First one that I try, the “discombobulator” script is having problems. I’ve tried this on both 2.36 and 2.37 version, and my platform is Suse Linux 9.1…
I will assume this is something truely noobish and easy to fix, I load up a test cube, subdivide it a few times so I have som faces to work from. Then in a second (split) window I load the text file discombobulator.py and From this window I then run the script … alt-P
It doesnt run, and the error I get is:
File “discombobulator.py”, line 68, in ?
ImportError: No module named defaultdoodads
and the script window the line “import defaultdoodads” is highlighted.
I have my scripts in a sub directory from where I launch blender, and have added the path to “file/paths” entry eg. /graphics/python
edit: Oh yea, I’ve gone through the setting your pythonpath messages, but I assumed this wasnt needed since version 2.36 included python internally. Or was that my main mistake?
No, there is a script called defaultdoodads.py that comes with the Discombobulator script (offtopic, is it weird that I can actually pronounce that? o__O ) It should be in the same folder as discombobulator.py.
Cool, OK, so set the pythonpath even though the descriptions sound like you only did that with blender prior to 2.32
thanks, I’ll see how that works out.
Umm, yea, my typing was a bit phonetic. it was calling “defaultdoodads.py” and not defaultdudads…
found my problem, thanks to some help by shingoki in the IRC.
This is what worked (on Suse 9.1… actually NLD if you want accuracy) PYTHONPATH=/usr/lib/python2.3:/usr/lib/python2.3/plat-linux2:
/usr/lib/python2.3/lib-tk:/usr/lib/pyhton2.3/lib-dynload:
/usr/lib/python2.3/site-packages:/home/graphics/python
The PYTHONPATH setting had to include the path to where I was saving off the python scripts as well as the path indicators as outlined in the documentation. I assumed incorrectly, that the filepath “python” would do this for me. I guess not.