Things like doDelete should be avoided (there are exceptions but I will not go into details here). It is not a MEL-command but a function call to some MEL script, meaning it's better that you learn what said script does (hint: many scripts do a lot of things you can live withouit). You can find out what script by using the…
I will start off with I am just starting with MEL and Python and I am sorry if my code looks basic. I am trying to understand how MEL works beyond the regular commands that we get from Maya and I would appreciate everyone's help to increase my knowledge beyond this point. I am having problems with a selection script I want…
you can do it in a loop over all the objects. Here's an example: //this selects all the objects in the scene you're allowed to delete select -ado; //this makes a list of the selected objects string $mySelection[] = `ls -selection`; //now we loop through the selection for ($obj in $mySelection) { if ($obj == "pCube1") {…