<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.starfall.wtf/index.php?action=history&amp;feed=atom&amp;title=Making_Hats%2FAnim8or_Mesh_Exporter</id>
	<title>Making Hats/Anim8or Mesh Exporter - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.starfall.wtf/index.php?action=history&amp;feed=atom&amp;title=Making_Hats%2FAnim8or_Mesh_Exporter"/>
	<link rel="alternate" type="text/html" href="https://wiki.starfall.wtf/index.php?title=Making_Hats/Anim8or_Mesh_Exporter&amp;action=history"/>
	<updated>2026-07-28T16:15:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.starfall.wtf/index.php?title=Making_Hats/Anim8or_Mesh_Exporter&amp;diff=166&amp;oldid=prev</id>
		<title>PRG: Created page with &quot;This is [https://web.archive.org/web/20080918235628/http://www.roblox.com/User.aspx?ID=6621 Gamer3D&#039;s] Anim8or script for exporting to the Roblox *.mesh format. With this update, the exporter officially works.   == Install Instructions == Open Anim8or. Use the menu bar in the following sequence: File-&gt;Configure Set the Scripts text bar to the folder you want scripts to be in. Place this script (as a .a8s file) in the folder. To make these files, I save it as a .txt file...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.starfall.wtf/index.php?title=Making_Hats/Anim8or_Mesh_Exporter&amp;diff=166&amp;oldid=prev"/>
		<updated>2024-12-09T21:44:29Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This is [https://web.archive.org/web/20080918235628/http://www.roblox.com/User.aspx?ID=6621 Gamer3D&amp;#039;s] Anim8or script for exporting to the Roblox *.mesh format. With this update, the exporter officially works.   == Install Instructions == Open Anim8or. Use the menu bar in the following sequence: File-&amp;gt;Configure Set the Scripts text bar to the folder you want scripts to be in. Place this script (as a .a8s file) in the folder. To make these files, I save it as a .txt file...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is [https://web.archive.org/web/20080918235628/http://www.roblox.com/User.aspx?ID=6621 Gamer3D&amp;#039;s] Anim8or script for exporting to the Roblox *.mesh format. With this update, the exporter officially works. &lt;br /&gt;
&lt;br /&gt;
== Install Instructions ==&lt;br /&gt;
Open Anim8or. Use the menu bar in the following sequence: File-&amp;gt;Configure Set the Scripts text bar to the folder you want scripts to be in. Place this script (as a .a8s file) in the folder. To make these files, I save it as a .txt file using Notepad, then rename it to change the extension. &lt;br /&gt;
&lt;br /&gt;
== Script ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/*&lt;br /&gt;
  Description: Add this to your Anim8or scripts directory and start Anim8or. The script MUST have the &amp;quot;.a8s&amp;quot; extension and be in the Anim8or Scripts folder. Make sure that &amp;quot;Preload Scripts&amp;quot; is set to ON (this is NECCESSARY). This script has been tested for 0.95 and 0.97 preview.&lt;br /&gt;
*/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#plugin(&amp;quot;object&amp;quot;, &amp;quot;export&amp;quot;, &amp;quot;Roblox Mesh&amp;quot;, &amp;quot;.mesh&amp;quot;);&lt;br /&gt;
#file($output, &amp;quot;text&amp;quot;);&lt;br /&gt;
#return($result);&lt;br /&gt;
&lt;br /&gt;
file $output;&lt;br /&gt;
int $result;&lt;br /&gt;
object $obj;&lt;br /&gt;
shape $shape, $shapes[1], $childShapes[1];&lt;br /&gt;
tridata $data;&lt;br /&gt;
material $mat;&lt;br /&gt;
int $numFaces;&lt;br /&gt;
point3 $point, $normal, $color;&lt;br /&gt;
point2 $uv;&lt;br /&gt;
int $i;&lt;br /&gt;
int $j;&lt;br /&gt;
int $index, $mIndex;&lt;br /&gt;
int $count;&lt;br /&gt;
float $gCol;&lt;br /&gt;
string $nm;&lt;br /&gt;
string $newName;&lt;br /&gt;
float4x4 $tMatrix;&lt;br /&gt;
&lt;br /&gt;
$nm = $output.GetRoot();&lt;br /&gt;
&lt;br /&gt;
$obj = project.curObject;&lt;br /&gt;
$output.print(&amp;quot;version 1.00\n&amp;quot;);&lt;br /&gt;
$obj.GetShapes($childShapes);&lt;br /&gt;
$shapes.size = 0;&lt;br /&gt;
while($childShapes.size &amp;gt; 0)&lt;br /&gt;
{&lt;br /&gt;
    $shapes.push($childShapes.pop());&lt;br /&gt;
}&lt;br /&gt;
while($shapes.size &amp;gt; 0)&lt;br /&gt;
{&lt;br /&gt;
    	$shape = $shapes.pop();&lt;br /&gt;
    	$shape = $shape.ConvertToMesh();&lt;br /&gt;
	$data = $shape.GetTriangleData();&lt;br /&gt;
       	$numFaces = $data.GetNumTriangles();&lt;br /&gt;
	$tMatrix = $shape.GetGlobalTransform();&lt;br /&gt;
	$output.print(&amp;quot;%d\n&amp;quot;,$numFaces);&lt;br /&gt;
	for $i = 0 to $numFaces - 1 do {&lt;br /&gt;
		for $j = 0 to 2 step 1 do {&lt;br /&gt;
			$index = $data.GetIndex(($i*3)+$j);&lt;br /&gt;
                    	$point = $data.GetPoint($index);&lt;br /&gt;
            	    	$point = $tMatrix.Project($point);&lt;br /&gt;
                    	$normal = $data.GetNormal($index);&lt;br /&gt;
                    	$uv = $data.GetTexCoord($index);&lt;br /&gt;
			$output.print(&amp;quot;[%.6g, %.6g, %.6g]&amp;quot;, $point.x, $point.y, $point.z);&lt;br /&gt;
			$output.print(&amp;quot;[%.5f, %.5f, %.5f]&amp;quot;, $normal.x, $normal.y, $normal.z);&lt;br /&gt;
			$output.print(&amp;quot;[%.5f, %.5f, 0]&amp;quot;, $uv.x, $uv.y);&lt;br /&gt;
                }&lt;br /&gt;
	}&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
$result = 1;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>PRG</name></author>
	</entry>
</feed>