Hello, I'm in a situation where I'm working with a model I already skinned, but need to reduce the max influence to a certain amount to render properly in engine (in this case, 3 specifically).
A lot of people just recommand to start over, but the model is subject to changes and I'm looking for flexibility in case the skinning has issues.
I found this script online that should select the vertices that have more than x influence but it's really old (from 2013) and doesn't work, maybe because of old syntax or something like that :
https://forums.unrealengine.com/t/max-influence-script-for-maya/60435
I'm looking for someone to help me fix this script, or build a similar one that can either do the same thing, or preferabily fix each vertex to by removing influence from the least influent bones to match the max influence limit.
In case it makes a difference regarding the script, I'm using Maya LT.