Hi everyone! I'm currently learning how to use MEL to automate some repetitive tasks in my rigging/animation workflow and I've run into a problem. I thought I'd post my script here to see if anyone can point me in the right direction. Basically, this script is designed to create blendshapes for clothing and accessories to…
I managed to figure out the solution to both issues! The warnings seem to have been caused by trying to declare and set both arrays before the first for loop. I reordered things a bit and now it runs without any problems. As for the slowdown, there was actually nothing wrong with the script - it was due to the viewport…
A bit difficult to debug without the actual scene to test it on. I assume you only select 1 cloth before running this right? In that case you don't need to loop through $array and can simply use $array[0]