Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

Ian Ross has just released a book on Anim8or. It's perect for a beginner and a good reference for experienced users. It contains detailed chapters on every aspect, with many examples. Get your own copy here: "Anim8or Tutorial Book"

Author Topic: HELP in Script (tree script)  (Read 11964 times)

neirao

  • Sr. Member
  • ****
  • Posts: 624
  • Neirao
    • View Profile
HELP in Script (tree script)
« 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..



..i think then need change/insert the SIMPLE LINE CODE.. but i´m not  good
in ASL scripts..(STILL)  :'(


the script files are be attached(zipped) below

thanks so much all!!  :)
« Last Edit: May 21, 2009, 09:52:57 pm by neirao »
Logged

Claude

  • Sr. Member
  • ****
  • Posts: 285
    • View Profile
Re: HELP in Script (tree script)
« Reply #1 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
Logged

neirao

  • Sr. Member
  • ****
  • Posts: 624
  • Neirao
    • View Profile
Re: HELP in Script (tree script)
« Reply #2 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!






Logged

Claude

  • Sr. Member
  • ****
  • Posts: 285
    • View Profile
Re: HELP in Script (tree script)
« Reply #3 on: May 22, 2009, 02:10:57 pm »

I implemented my suggestions.
Here's the result.
Logged

neirao

  • Sr. Member
  • ****
  • Posts: 624
  • Neirao
    • View Profile
Re: HELP in Script (tree script)
« Reply #4 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!


Logged

dajean

  • Newbie
  • *
  • Posts: 43
  • Creativity
    • View Profile
Re: HELP in Script (tree script)
« Reply #5 on: June 03, 2009, 10:17:21 am »

really nice script, thanks guys.
Logged