MEL script for setting the pivot point to the starting point of the curve in MAYA string $sel[] = `ls -sl`; for ($i= 0 ;$i<size($sel);$i++) { float $posx = `getAttr ($sel[$i]+ ".controlPoints[0].xValue" )`; float $posy = `getAttr ($sel[$i]+ ".controlPoints[0].yValue" )`; float $posz = `getAttr ($sel[$i]+ ".controlPoints[0].zValue" )`; float $curvex = `getAttr ($sel[$i]+ ".tx" )`; float $curvey = `getAttr ($sel[$i]+ ".ty" )`; float $curvez = `getAttr ($sel[$i]+ ".tz" )`; $posx += $curvex; $posy += $curvey; $posz += $curvez; move -a $posx $posy $posz ($sel[$i] + ".scalePivot" ) ($sel[$i] + ".rotatePivot" ); }