# Script used during developing. # Orlando Soto, January 2014. from org.csstudio.opibuilder.scriptUtil import PVUtil pv0 = int(PVUtil.getDouble(pvs[0])) pvs[1].setValue(pv0) pvs[3].setValue(0) color = widget.getParent().getMacroValue("color") if color == "green": pvs[2].setValue(pv0)