I’ve simplified my problem down to a test: my button calls a function in the Script Library
def setEnableStatus(): import system print "Button pressed." try: window = system.gui.getWindow('Overview') except: print "Failed to get window."
The console reports
Button pressed. Failed to get window.
The Overview window exists in the default project location. The window is open (and the button is on it).
What am I missing? Do I need to import anything else?