I am attempting to write what I assume is a pretty simple mel script to achieve this behavior: • Select shortest edge path based on current selection of two verts • Switch to edge component mode • Set selected edges to hard I got as far as finding this: polySelect -shortestEdgePath 10 100 pPlane1;, but got stuck trying to…
Glad you find it useful. ;) For learning basically this: The best way is to have some sort of a project, script you want to do and then llearn how to do it by google it around with "maya mel.....". The book are ok to look a bit but i didn't find it super useful so just check YouTube and/or Vimeo instead.
I don't know about the others, but I've learned the most from reading through the docs and taking apart scripts that others have written. And a lot of googling and reading old forum threads, looking for similar solutions or suggestions like: "Oh you want to [thing]? Try doing [keyword to research further] like this..."
Here it is a quick one. Probably could be done better and with fewer lines but.... Just select two vertices and run the script, should work: // get two selected verticesstring $compSel[]= `ls -sl -fl`;// get object name string $objSel[] = `ls -hilite`; // get the number of first sel verticestring $buffer1[];$numTokens1 =…