global proc int smdAssignVert (float $pos[], string $bones[], string $weights[])
{	
	global string $g_smdMesh;
	global string $g_smdRead_dict;
	vector $comp = <<$pos[0], $pos[1], $pos[2]>>;
	vector $this;
	float $posOutput[3];
	int $v;
	int $polyCount[] = `polyEvaluate -v $g_smdMesh`;
	for ($v = 0; $v <= $polyCount[0]; $v++)
		{
		// get the pos, convert to a vector for easier comparison
		$posOutput = `xform -q -t -ws ($g_smdMesh + ".vtx[" + $v + "]")`;
		$this = << $posOutput[0], $posOutput[1],$posOutput[2]>>; 
		if ($this == $comp)
		{
			// i am a dummy!
			print ($v + " : " + $this + "\n");
		}
	}
return 1;
}
