global proc daAngleManip() { //daAngleManip by Dru Abrams. //Last Modified January 16, 2004. // // This simple script create 4 curves at 45 degree interals, //groups them, and renames the group "da_angleManip". Useful for //snapping curves you're creating to a 45 degree angle. // //Apologies to advanced mel users for the simplicity of my scripting skills. //To use: Place this script into your My Documents/Maya/Scripts folder. //Launch Maya and type the command "daAngleManip". If Maya is already //running, source the script first, then type the command. // curve -d 1 -p -16 0 0 -p 16 0 0 -k 0 -k 1 ; string $select[] = `ls -sl`; rename $select "Angle_0_180"; duplicate; rotate -r 0 45 0; string $select[] = `ls -sl`; rename $select "Angle_45_225"; duplicate; rotate -r 0 45 0; string $select[] = `ls -sl`; rename $select "Angle_90_270"; duplicate; rotate -r 0 45 0; string $select[] = `ls -sl`; rename $select "Angle_135_315"; select -r Angle_0_180 Angle_45_225 Angle_90_270 Angle_135_315 ; group; xform -os -piv 0 0 0; string $select[] = `ls -sl`; rename $select "da_angleManip"; }; ;