def reset_trace_observer(): trace_globals.observer = servermanager.vtkSMPythonTraceObserver() trace_globals.observer_active = False
def trace_observer(): """This method will create a new observer if none exists.""" trace_globals.observer = trace_globals.observer if trace_globals.observer else \ servermanager.vtkSMPythonTraceObserver() return trace_globals.observer