I’m having a difficult time executing what should be a simple function. I’m a MEL novice so any help would be profoundly appreciated… here’s the script thus far:
string $Select_Components[] = ls -sl ;
string $Parent = $Select_Components[0] ;
vector $Parent_Location = xform -worldSpace -q -translation $Parent ;
vector $Parent_Rotation = xform -q -rotation $Parent ;
polyTorus -n (($Parent)+“Translate_CTRL”) -sx 8 -sy 4 -r 1 -sr .1 -tw 45;
move ($Parent_Location.x) ($Parent_Location.y) ($Parent_Location.z);
select -r (($Parent)+“Translate_CTRL”) ;
rotate 0 22.5 0;
rename “polyTorus1” (($Parent)+“Translate_CTRL_Inputs”);
polyExtrudeFacet -constructionHistory 1 -keepFacesTogether 1 -pvx 3.00000006 -pvy -3.725290298e-009 -pvz 0 -divisions 1 -twist 0 -taper 1 -off 0 -thickness 0 -smoothingAngle 30
(($Parent)+“Translate_CTRL”).f[1] (($Parent)+“Translate_CTRL”).f[3]
(($Parent)+“Translate_CTRL”).f[5] (($Parent)+“Translate_CTRL”).f[7]
(($Parent)+“Translate_CTRL”).f[9] (($Parent)+“Translate_CTRL”).f[11]
(($Parent)+“Translate_CTRL”).f[13] (($Parent)+“Translate_CTRL”).f[15]
(($Parent)+“Translate_CTRL”).f[17] (($Parent)+“Translate_CTRL”).f[19]
(($Parent)+“Translate_CTRL”).f[21] (($Parent)+“Translate_CTRL”).f[23];
It does perform an extrude on the entire mesh instead of the faces I have selected via the script. If I remove the (($Parent)+“Translate_CTRL”) and instead replace it with it’s standard name the script executes just fine, I’d just prefer that I’d be able to perform these actions as they are… any suggestions/help again would be greatly appreciated. :banghead:
//*Solution I simply moved the ") within each poly selection to outside the brackets. MEL novice, like I said…
:shrug: