# Script used to write he Master OR width. # Orlando Soto, January 2014. from org.csstudio.opibuilder.scriptUtil import PVUtil pv0 = int(PVUtil.getDouble(pvs[0])/10) # Reading epics variable. pvs[1].setValue(pv0) # Writing into the input text widget variable. color = widget.getParent().getMacroValue("color") # Getting color from macro value. if color == "green": # If color is green, write into the next channel too. pvs[2].setValue(pv0)