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.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - margo308

Pages: [1]
1
nvm,what wrong with this script when i put debug it says therer is sometihng wrong on the 23 line(i put a 23. so you can see where the 23 line is)


#plugin("object", "export", "Roblox Mesh", ".mesh");
#file($output, "text");
#return($result);

file $output;
int $result;
object $obj;
shape $shape, $shapes[1], $childShapes[1];
tridata $data;
material $mat;
int $numFaces;
point3 $point, $normal, $color;
point2 $uv;
int $i;
int $j;
int $index, $mIndex;
int $count;
float $gCol;
string $nm;
string $newName;
float4x4 $tMatrix;

23.$nm = $output.GetRoot();

$obj = project.curObject;
$output.print("version 1.00\n");
$obj.GetShapes($childShapes);
$shapes.size = 0;
while($childShapes.size > 0)
{
    $shapes.push($childShapes.pop());
}
while($shapes.size > 0)
{
       $shape = $shapes.pop();
       $shape = $shape.ConvertToMesh();
   $data = $shape.GetTriangleData();
          $numFaces = $data.GetNumTriangles();
   $tMatrix = $shape.GetGlobalTransform();
   $output.print("%d\n",$numFaces);
   for $i = 0 to $numFaces - 1 do {
      for $j = 0 to 2 step 1 do {
         $index = $data.GetIndex(($i*3)+$j);
                       $point = $data.GetPoint($index);
                      $point = $tMatrix.Project($point);
                       $normal = $data.GetNormal($index);
                       $uv = $data.GetTexCoord($index);
         $output.print("[%.6g, %.6g, %.6g]", $point.x, $point.y, $point.z);
         $output.print("[%.5f, %.5f, %.5f]", $normal.x, $normal.y, $normal.z);
         $output.print("[%.5f, %.5f, 0]", $uv.x, $uv.y);
                }
   }
}


$result = 1;

2
ASL Scripts / when they mean copy how do i copy the script in there?
« on: July 12, 2009, 07:22:18 am »
like does it mean copy and paste the thing in documents that has my script becouase when i go press copy and i want to paste it doesn't not let me past but when i look for it in documents when i put browser on the menu thing it dosent show the script

3
ASL Scripts / Re: how do i make the .a8s extension???
« on: July 12, 2009, 07:15:08 am »
hope i does to ty

4
ASL Scripts / Re: how do i make the .a8s extension???
« on: July 12, 2009, 06:14:47 am »
like am i using the wrong spit to make scripts or what?

5
ASL Scripts / how do i make the .a8s extension???
« on: July 12, 2009, 06:13:15 am »
i have bin here lookign geting frustrated and i still can tget my scritp to have the extension(i am making ym scripts in notepad using vista) ???

Pages: [1]