Perhaps it has something to do with certain other polyEvaluate flags returning array values, so all return values must be an array. From what I understand of MEL, a variable can't be redefined once it's been set as something like it can in Python. That's probably why `ls -sl` always returns an array for a single object…
Oddly enough, despite the documentation saying that polyEvaluate -f returns an int: // Error: line 5: Cannot convert data of type int[] to type int. // Convert the type to an array and you'll be good to go: int $facecount[] = `polyEvaluate -f $pObjs[$i]`; EDIT: Had an odd thought that the command would return an array of…