Fill Selection MEL 1.0.0 for Maya (maya script)
A tool to select parts ot the mesh based on edgeloops
Reviews Love it? Or maybe you want to share some creative ways you're putting this item to use.
-
Hi. First of all, I'm poor at English. Please understand this I was needed something like this!!! but How can i use this script? If possible, Can you explain a little more detail this script? I tried, as described below. I've put the fillSelection file on the scriptfold. C:\Users\******\Documents\maya\scripts Then, I was slected edge loops that i want to place, I ran the script. The end, Thank you for developing a good script. ps. Now the script is running well. Thank you very much. I am so happy because this script!! -
Does the job, but it took me a while to figure out that a button click is needed to finish the script job. Could use a better step by step, a speed pass and most importantly, it needs to be able to preserve the users state of Maya (i.e. respecting the component selection mode I am currently in) -
On Maya 2015 I select an edge loop, and running the script switches to face selection mode, and clicking results in all faces selected situation... -
Hi. Thanks for the feedback! I experience the same problem here. Although it sometimes still works. I'll have a look. -

// Fill Selection Tool for Maya - 2016 (2017, 2018) version
// Author: Daniel Brkovic, Tom Ferstl
// Special Thanks to: Tom Ferstl, Karsten Wagenknecht, David Kirchner, Kyra Buschor
// Date: 27-03-2018global string $fsProject[], $fsUVCut[];
global proc fillSelection()
{
selectionFillStart;
scriptJob -ro 1 -e "SelectionChanged" selectionFillFinish;
}global proc selectionFillStart()
{
global string $fsProject[], $fsUVCut[];
string $edgeSelection[] = `ls -sl`;
string $objectSelection[] = `ls -sl -o`;
// UV Projection to create a shell for the selection
string $fsProject[] = `polyProjection -type Planar -ibd on -cm on -uvSetName selectionFill -md x ($objectSelection[0] + ".f[*]")`;
polyUVSet -currentUVSet -uvSet "selectionFill" $objectSelection[0];
string $fsUVCut[] = `polyMapCut $edgeSelection`;
SelectFacetMask;
}global proc selectionFillFinish()
{
global string $fsProject[], $fsUV[], $fsUVCut[];
ConvertSelectionToUVShell;
polyUVSet -d -uvSet "selectionFill";
// get history before deleteUV command
string $historyIntersector;
$historyIntersector = `stringArrayIntersector`;
string $initialArray[] = `listHistory`;
stringArrayIntersector -edit -intersect $initialArray $historyIntersector;
// get current history nodes for intersector after
stringArrayIntersector -edit -intersect `listHistory` $historyIntersector;
string $result[] = `stringArrayIntersector -query $historyIntersector`;
// get difference history nodes
string $diff[] = stringArrayRemoveExact($result, `listHistory`);
// delete intersector and difference history nodes
deleteUI $historyIntersector;
delete $diff;
delete $fsUVCut;
delete $fsProject;
}
Please confirm your email before commenting.