Anim8or Community

General Category => ASL Scripts => Topic started by: neirao on May 21, 2009, 09:46:48 pm

Title: HELP in Script (tree script)
Post 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!!  :)
Title: Re: HELP in Script (tree script)
Post by: Claude on May 22, 2009, 12:25:54 am
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
Title: Re: HELP in Script (tree script)
Post by: neirao on May 22, 2009, 09:33:02 am
Claude thanks for hint, :)
but i not have succeed... :(

i not very good in ASL..

other someone can help me ??

thanks!






Title: Re: HELP in Script (tree script)
Post by: Claude on May 22, 2009, 02:10:57 pm
I implemented my suggestions.
Here's the result.
Title: Re: HELP in Script (tree script)
Post by: neirao on May 22, 2009, 06:17:06 pm
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!


Title: Re: HELP in Script (tree script)
Post by: dajean on June 03, 2009, 10:17:21 am
really nice script, thanks guys.