I’m trying to use a python script called L-system to make trees in Blender 2.28.
When I run the script and hit ‘generate’ nothing happens.
The little window with blender says this:
Traceback (most recent call last):
File “lsystem.py”, line 6, in ?
ImportError: No module named random
failed importing internal module lsystem
trying to import external module…
Traceback (most recent call last):
File “Application.py”, line 447, in bevent
NameError: There is no variable named ‘lsystem_build’
What does this mean? Can I fix it? If not, does anyone know of any other python scripts to make trees?
I think the problem is quite simple. ‘random’ is a python module which doesn’t ship by default with Blender. If you do a full python install (see http://www.python.org), you’ll be able to run the script further.
I did dowload the L-system from the thread in this forum, it should be compatible with 2.28. I have python 2.2, could that be it? Is the ‘random’ thing different from the python package?
I did dowload the L-system from the thread in this forum, it should be compatible with 2.28. I have python 2.2, could that be it? Is the ‘random’ thing different from the python package?
‘Random’ is in Python 2.2 so if you say you have 2.2 installed then blender (actually LSystem) can’t find it. Check you’ve set your pythonpath correctly.
there’s a tree generator called TReal, link is on my homepage. it exports to POV-Ray, but you can import it to Blender with my pyscript (also on my site, -> extras). generates realistic high-vert-count trees