Message 1 of 2
(MEL) Syntax help plz, UV script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi, hope y'all are having a wonderful holiday break.
I require some assistance to bypass this error // Error: line 12: Cannot convert data of type int[] to type int. // in this script.
global proc string[] texGetShellsMOD()
{
//modified to work on all uvshells
string $result[];
int $UVShellsNum[];
int $shellcount;
string $selectedObjs[] = `ls -o -sl`;
for ($o in $selectedObjs)
{
if(`nodeType $o` != "mesh" )
continue;
$shellcount = `polyEvaluate -uvShell $o`;
print $shellcount;
for ($i=0; $i < $shellcount; $i++)
{
$UVShellsNum[$i] = $i;
}
for ($s in $UVShellsNum)
{
string $uvsInShell[] = `polyEvaluate -uis $s $o`;
$result[size($result)] = stringArrayToString($uvsInShell, " ");
}
}
return $result;
}
texGetShellsMOD;
this script is a modified version of the texGetShells which suppose to get all the uv shells inside the uv editor. Original script only grabs the selected uvshells. This current one will grab and store all the uvShells.
https://www.artstation.com/kelvintam