Right now, setting a texture for a hidden selection requires the index of the texture in the hiddenSelections array. This means that if the array ever changes, all scripts using this function run the risk of breaking.
It would therefore be helpful if the selectionNumber could be a NUMBER or a STRING, with the STRING being the name of the hidden selection instead of the index.
object setObjectTextureGlobal["camo", "\path\to\texture_co.paa"];
would always work as expected.