def restore_surface_color_mapping(): try: surface_color_state = \ { 'class': 'Surface_Colorings_State', 'coloring_table': {}, 'geometry': None, 'is_visible': False, 'version': 2, } import SurfaceColor.session SurfaceColor.session.restore_surface_color_state(surface_color_state) except: reportRestoreError('Error restoring surface color mapping')
replyobj.status("Restoring pseudobond groups...", blankAfter=0, secondary=True) restorePseudoBondGroups(pbInfo) replyobj.status("Restoring model associations...", blankAfter=0, secondary=True) restoreModelAssociations(modelAssociations) replyobj.status("Restoring camera...", blankAfter=0, secondary=True) restoreViewer(viewerInfo) try: restoreCoreModels() except: reportRestoreError("Error restoring core models") replyobj.status("Restoring extension info...", blankAfter=0, secondary=True) try: import StructMeasure from StructMeasure.DistMonitor import restoreDistances registerAfterModelsCB(restoreDistances, 1) except: reportRestoreError("Error restoring distances in session") def restoreMidasBase(): formattedPositions = {}
replyobj.status("Restoring pseudobond groups...", blankAfter=0, secondary=True) restorePseudoBondGroups(pbInfo) replyobj.status("Restoring model associations...", blankAfter=0, secondary=True) restoreModelAssociations(modelAssociations) replyobj.status("Restoring camera...", blankAfter=0, secondary=True) restoreViewer(viewerInfo) try: restoreCoreModels() except: reportRestoreError("Error restoring core models") replyobj.status("Restoring extension info...", blankAfter=0, secondary=True) try: import StructMeasure from StructMeasure.DistMonitor import restoreDistances registerAfterModelsCB(restoreDistances, 1) except: reportRestoreError("Error restoring distances in session") def restoreMidasBase(): formattedPositions = {
secondary=True) restoreVRML(vrmlInfo) replyobj.status("Restoring pseudobond groups...", blankAfter=0, secondary=True) restorePseudoBondGroups(pbInfo) replyobj.status("Restoring model associations...", blankAfter=0, secondary=True) restoreModelAssociations(modelAssociations) replyobj.status("Restoring camera...", blankAfter=0, secondary=True) restoreViewer(viewerInfo) try: restoreCoreModels() except: reportRestoreError("Error restoring core models") replyobj.status("Restoring extension info...", blankAfter=0, secondary=True) try: import StructMeasure from StructMeasure.DistMonitor import restoreDistances registerAfterModelsCB(restoreDistances, 1) except: reportRestoreError("Error restoring distances in session") def restoreMidasBase(): formattedPositions = {}