Pass the objectName of a button as the ScriptParameter for a script?
How can I pass the objectName of a button as the ScriptParameter for a script?
My goal is to be able to call the same script from multiple buttons with minimal changes to each copy of the button as I create it on the layout. At a minimum, I have to change the objectName of each copy of the original button. So, I would like to make that the only change to maximize consistency and minimize code maintenance.
I could manually enter the button's objectName in the "Optional script parameter:" field of the "Button Setup" dialog but then each time I create a new button I have to edit the new objectName and then manually enter it again as the "Optional script parameter:"