PlaceLocatorOnPlane MEL

From scripting
Jump to: navigation, search
global proc string[] PlaceLocatorOnPlane(float $xR, float $yR, string $PlaneName) {
	//0001D LLC 2015 Nick Pisca
	vector $xyz = `pointPosition ($PlaneName + ".uv["+($xR)+"]["+($yR)+"]")`;
	string $SP[] = `spaceLocator -p ($xyz.x) ($xyz.y) ($xyz.z)`;
	scale -cp 0.05 0.05 0.05 $SP[0];
	return $SP;
}




For information on NURBS, read pages 43-49, 109-116 in YSYT.