3459_creativecowvisibilitycubeupdate.mel.zip
There are comments in the code to help.
Removed myBtn1 from the radio group and the form layout.
Added attribute to run Global procedure when the status to the radio group is changed.
To be more correct, change the code for the "-select 2" to an if statement that checks the actual visibility status of the pcube1 (or selected object). "2" represents the on position which I changed from "1" since this was to run when the cube was on screen.
Hope this helps.
Rob Dahl
Transparent Alchemy
Boulder City, NV 89005
http://www.transparentalchemy.com