I'm not 100% sure what you are trying to do, but for what I'm guessing, using a struct to store the information would be the safest way. When you do oldP = (selection as array) each item in there is a reference to the actual object in the scene. When you change the pivot and position of each object using Selection.pivot =…
Hi Matt, here is another version, I almost forgot you can make MacroScripts work like toggle buttons. This code avoid the obnoxious rollout, and can be directly associated to a shortcut or a toolbar button. Modify it as you need. macroScript PositionSwitchercategory:"Test Tools"buttonText:"PosSwitch"tooltip:"Position…