Anim8or Community
General Category => ASL Scripts => Topic started by: neirao on May 21, 2009, 09:46:48 pm
-
Hi guys,
please someone can help me in this script..?
is a simples script based in hair script, it make one pseudo tree, but can be used to maker grass, fur, etc, if changer the textures..
(http://img198.imageshack.us/img198/8591/correctionscript01.jpg)
..i think then need change/insert the SIMPLE LINE CODE.. but i´m not good
in ASL scripts..(STILL) :'(
(http://img198.imageshack.us/img198/8549/correctionscript02.jpg)
the script files are be attached(zipped) below
thanks so much all!! :)
-
I had a quick look.
Here's a few suggestions:
The code to create the material should be moved right after the
$currentMaterial = $curObject.LookupMaterial("arvore_textura");
line so that you have your material ready
when you create your plane.
After the line
$plane.Open();
you need to use this function to add the material to the plane
int AddMaterial(material mat);
AddMaterial() adds a new material to the Mesh and returns it’s index.
Index you need next.
The first parameter of the OpenFace function is the material index
assigned to the face
$plane.OpenFace(0,4);
Good luck
Claude
-
Claude thanks for hint, :)
but i not have succeed... :(
i not very good in ASL..
other someone can help me ??
thanks!
-
I implemented my suggestions.
Here's the result.
-
VERY THANKS Claude!!!!! :D :D :D
the script Work!! You are a Genius!! ;)
now i can maker previous textures,
to maker some effects!!
thanks again!
-
really nice script, thanks guys.