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 query the selected verts / object. I can get vertex numbers using string $objects[]=`ls -sl -fl`;, but cant sort out how to use those values in the -shortestEdgePath command. I'd be grateful for any assistance.
I'd also appreciate any recommendations on good resources for learning mel script. I don't want to go full tech artist, but I'm finding myself more and more frustrated with repetitive tasks / key strokes. I'd love to learn enough to automate simple, repetitive tasks. Thanks!
Replies
Just select two vertices and run the script, should work:
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.