I am currently working on an automated rig script and I faced an issue I cannot understand. Here is the simplified part of the code I\'m looking a solution for :