Hello,
sorry just out of couriosity whats the difference other then the Float veriable and the rest of the procedure is now outside a scope and the variable now are keps as global?
When you decler something in a scope { } maya will destry the variable as soon as the scope as been execute it's most of the time usefull to actually inclue { } in your script editor so the variable are gettin cleaned all the time.
Also re-decler a variable can be usefull so you do not have garbage value. this of course is my honest opinion but I would like to know why do you reckon you should change the script there is always something to learn about
.
Just out of couriousity.
Thanks,
-a