Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

An update to Anim8or, v1.00b, is available with a few bug fixes. Get your copy HERE. See the "ReadMe" file for details.

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

neirao

  • Sr. Member
  • ****
  • Posts: 570
  • Neirao
    • View Profile
HELP in Script (tree script)
« on: May 22, 2009, 01:46:48 am »

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 im not  good
in ASL scripts..(STILL)  :'(


the script files are be attached(zipped) below

thanks so much all!!  :)
« Last Edit: May 22, 2009, 01:52:57 am by neirao »
Logged

Claude

  • Full Member
  • ***
  • Posts: 248
    • View Profile
Re: HELP in Script (tree script)
« Reply #1 on: May 22, 2009, 04: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 its 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: 570
  • Neirao
    • View Profile
Re: HELP in Script (tree script)
« Reply #2 on: May 22, 2009, 01:33:02 pm »

Claude thanks for hint, :)
but i not have succeed... :(

i not very good in ASL..

other someone can help me ??

thanks!






Logged

Claude

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

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

neirao

  • Sr. Member
  • ****
  • Posts: 570
  • Neirao
    • View Profile
Re: HELP in Script (tree script)
« Reply #4 on: May 22, 2009, 10: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, 02:17:21 pm »

really nice script, thanks guys.
Logged