could you update this script ? it very useful in some case, but that was 5 year old, and it can not work anymore in new nuke 11.xx and 12.xx