button -label "Reorder base on Selection"; -command "resortSel;"; After "Reorder base on Selection" you have a semicolon. Therefore maya doesn't recognize the following line as a member of the button setting definition. You should display the line number of the errors in your script editor, this would help you find the…
WIP code idea for sorting objects in place global proc reorderinPlace(){ string $unsortList[]=`ls -sl`; string $sortList[]= `sort($unsortList)`; if (`gmatch $unsortlist "*[0-9]"`) //To check if object has number suffix { warning "please rename object with number suffix"; break; //exit procedure if there is no number suffix…
define the radioButtonGrp with the -select flag with the number of the radio button you want selected. or run the radioButtonGrp command in edit mode and use the -select flag if you want to do it after the control is defined. radioButtonGrp -numberOfRadioButtons 2 -select 1 -label "Select type" -labelArray2 "InsideGroup"…
another question, this time is in regards to setting the default RadioButtonGrp pressed glboal proc resortNum(){ string $sel[] = sort(`ls -sl`); for ($eachNode in $sel) { reorder -b $eachNode; }}global proc resortName()////This bottom portion with the promptDialog is sampled from another site////{ string $text; string…
thanks passerby new question: is it possible to find where a node is located in Outliner, like the number order? I have search through all the maya command reference and have found nothing in regards to that.