python grass script: error

A week a go it was the first time I used blender and now I try to use a python script for the first time…

I’m trying because when I start the script: (Fiber 13) withc Alt- P it says…

Error: python script error, check console

I’m deffinetly doing something wrong…but what?

To check the console minimize Blender and check the console box and then let us know what it says. Also the problem may be that your python path is not set up correctly - see the python forum thread python path 101 at the top. Also which version of Blender are you using?
Paradox

.dll Load failed (says the black dos box)

That is probablly the dynoise.dll. I read about this somewhere (?) try putting a copy of it in the same folder as the Blender.exe file.
Paradox

I will give some more info:

Windows ME
Python 2.2

Installed python as normal as it is
Installed Fiber13 script

copied 3 files into Blender folder (also that dynoise.dll) do I have to do more than that?

But mayby I got the link to Python not set correctly?

It says: :c:\program files\python

tnx.

I use python 22 with no problems. Check eeslo’s post here https://blenderartists.org/forum/viewtopic.php?t=7723
You need to have the path set in Blender at the top under python. Pull down the top (Eeslo explains this) and type your path there. I have it like this - C:/Python22/Lib/
Second you need to set the full python path in your system variable window (XP) or when I had windows 98 with autoexec.bat (again see Eeslo’s post on how to do this. I’m not sure about Windows ME.
Keep trying you’ll get it. A lot of people having problems with python often turns out to be an incorrectly set path. Hope this helps. If not then keep asking we’ll help you get it right. Also which version of Blender are you using. I’ve used this script with Blender 2.23 2.26 and windows 98 and windows XP.
Paradox

I use blender 2.26

It still don’t work :expressionless:

I did everything what was writen in the link(thanks for it)

I edit my autoexec.bat file and set the path (in blender) to the lib directerory of python.

1 thing though…in the readme of the script it says.

You must install Eeshlo’s dynoise module (dynoise.dll/dynoise.so/dynoise.py) in the same directory as Blender’s executable.

I coppied them into there…but how doe you install the dynoise module?

The blender dos box still says:

Traceback <most resent call last>: File “FiberGUI”, line 45, in ?
File "Fiber13.py, line 6, in ?
from dynoise import radom, HTerrain, InitNoise.
ImportError: DLL load failed


I downloaded a tree python script…and that one works…so i isn’t the python but its deffinetly the dll files of that fiber13 script…but how do I fix that problem?

No further installation is required, you just need to copy the right file to the right place.

Did you read the Fiber13_ReadMe.txt file where it says:

“If you have Blender 2.26 or above, you must use the dynoise.dll from the 2.26 directory.”

(It should be part of the zip file that RipSting posted in his “April 3rd, 2003” message).

If this fails then you should try the python script version posted by eeshlo at the following link:

https://blenderartists.org/forum/viewtopic.php?t=8511&start=45

Be sure to check through that thread, there seems to be some discussion with respect to the same problem that you are describing.

thanks!! both of you!!

I had already coppied the file dynoise.dll into the blender directory but didn’t do that to the python directory.

It didn’t said you had to do that but it worked!!!

What would i be without internet and elYsiun :smiley:

thanks again Paradox and JarellSmith etc. for quick replying.

Now there’s another problem coming up. Now I can run the script but I how do I run the script in an already created model so that i can add grass in my first blender model.

It’s fairly straight forward:

Test first on a default Blend file:

  1. subdivide the deafault plane a few times, maybe scale it up a bit also,
  2. Vertx paint the plane some red(gravity), green(length), and blue(density), (Face select [f] and vertex paint [v]),
  3. Split the middle window in half, switch the right side window to a script/text window,
  4. Open up the fiber13.py and then the fibergui.py files by pressing the little [-] menu button in the script/ text window,
  5. With FiberGui.py in the text window, press Alt_p to run it, then press [Estimate] to estimate the number of faces to be produced, if it indicates 0, increase the density slider and try again.
    If you need any more help, just ask.

I created a mesh

I subdivided the plane 4 times. But when I pressed the F it says (already are faces) and when I pressed V to vertex paint it didnt do anything.

Split the window in half en loaded the fibergui.py and the fiber13.py. With the fibergui.py selected I press Alt P… it worked so far…

I had not a 0 in the estimated window but when I press ‘Create’ it switched back to the text and nothing happended at all.

:expressionless: arg…

when I pressed the F it says (already are faces)

You need to be in Object mode (as opposed to Edit mode -> [Tab] ) when you press [f] to enter face select mode.

If you don’t assign vertex colors or at least press [Make] next to VertCol (in the Edit Buttons Window) it will cause the script to crash, since that is the method that the script uses to let you control the various fiber parameters.

Also, you should check the console like you did previously to see what error messages there are (if any).

Good Luck.

Thanks!! it worked, i’ve got my grass

thanks