This snippet works, it's part of putting some blendShape targets into an existing group:
int $targetDir = 1;
setAttr blendShape1.targetDirectory[$targetDir].childIndices -type Int32Array 3 0 1 3;
But this doesn't, and I get an error, but I can't figure out why. I tried splitting the array size and array into two variables, but then the error changes to element number 4.
int $targetDir = 1;
int $otherInts[] = {3, 0, 1, 3};<br>setAttr blendShape1.targetDirectory[$targetDir].childIndices -type Int32Array $otherInts;<br>// Error: line 1: setAttr: Error reading data element number 3: // <br>
I'd rather use mel here, since all the Shape Editor interface is written in mel.
Replies
Here's some working mel and includes some of the additional lines to tell the Shape Editor UI to put some blend targets into an existing group. it's very sleek. (do these code boxes not have an option for scrolling?)