PlaceLocatorOnPlane MEL

From scripting
Revision as of 19:41, 24 April 2017 by Nickpisca (talk | contribs) (Created page with " global proc string[] PlaceLocatorOnPlane(float $xR, float $yR, string $PlaneName) { //0001D LLC 2015 Nick Pisca vector $xyz = `pointPosition ($PlaneName + ".uv["+($xR)+"]...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.