Difference between revisions of "PlaceLocatorOnPlane MEL"

From scripting
Jump to: navigation, search
(Created page with " global proc string[] PlaceLocatorOnPlane(float $xR, float $yR, string $PlaneName) { //0001D LLC 2015 Nick Pisca vector $xyz = `pointPosition ($PlaneName + ".uv["+($xR)+"]...")
 
(No difference)

Latest revision as of 19:41, 24 April 2017

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.