# This script is applicable to all molecules with a scene specified by # a single Jmol state script. # It is designed to be called by a molecule-specific script # that defines the variables referenced below. # LOAD MOLECULE (restores windowcentered) zap if (_applet) { loadedfileprev = "" # blank signals state script to load PDB file } else { load @PDBFileName } # DISPLAY MOLECULAR SCENE FROM STATE SCRIPT if (_applet) { script @proteopediaStateScript } else { script @localStateScript # load and initialize commands commented out! } # NOTE THAT STATE SCRIPT ERASES DEFINED VARIABLES AND SETTINGS, # SO MUST GO BEFORE WHAT IS BELOW. # LOAD SUPPORT FUNCTIONS # for Proteopedia (applet) if (_applet) { script "/wiki/images/d/de/MPSupportVersion01.spt" } # for Projection (application) else { script MPSupportVersion01.spt } # INITIALIZE initializeBeforeEachCycle("nozap") # USE LIGHT CPK COLORS ON ATOMS AND BONDS # This will need to be modified if some atoms are non-cpk colored! colorAllLightCPK # affects only C, N, O. # BANNER AT TOP (bannerMessage2 is defined in MPSupportVersion01.spt) showBannerAcrossTop(bannerMessage, bannerMessage2) # OPTIONALLY ADD AN ELEMENT COLOR KEY # Generate the color key. elementColorKey(elementList) # ARBITRARY COLOR KEY(S) arbitraryColorKeys() # Spin if spinDefault is true spinOn # ENTRANCE ZOOM if (zoomStart != "") # blank if undefined { entranceZoom(zoomStart, zoomEnd) } # This is required to signal script completion # to the MP projection system. message "Jmol Script Execution Completed" # END of MPSceneVersion01.spt