This script will get you the file path to the Ignition projects directory:
from com.inductiveautomation.ignition.gateway import IgnitionGateway
context = IgnitionGateway.get()
projectParentFolder = str(context.systemManager.dataDir.absoluteFile).replace('\\','/') + '/projects/'
From there, you should be able to traverse the structure to find your View and read its view.json file, interpret it as json with system.util.jsonDecode
, and find your bindings.
Note, this will only run in the gateway scope, so script console is out (unless you indirectly run it from there on the gateway). Running it from a Perspective button will work though.
You can also reference @rbabcock 's Theme Manager View code for an example of how to traverse the file structure. Incidentally, this is a pretty useful resource to have as well!