People of knowledge, please help me to understand this: In Maya LT 2017 + macOS, I have following test script: https://gist.github.com/bitinn/13f7b55a0aad3a6ba5dadecb48ef4351 In full: // REMEMBER TO SOURCE THIS, NOT RUN IN THE SCRIPT EDITOR DIRECTLY
{ string $TEST_STRING = "TEST_STRING_#"; proc RunLocal1 () {…
I believe this is the only safe alternative (to using global/local variables). If you are using MEL script, good luck trying to share a variable across procedures! (It would work in your script editor, but as soon as you try to invoke global proc through UI, as "-command" requires global proc, shits goes down because of…