--hreg=mc.mcRegGetHandle(inst, 'ESS/Encoder_0') --EncRawVal=mc.mcRegGetValue(inst, hreg) --scr.SetProperty('droEncRep2', 'Value', tostring(EncRawVal)) local inst = mc.mcGetInstance() local hreg = mc.mcRegGetHandle(inst, 'ESS/Encoder_0') local EncRawVal = mc.mcRegGetValue(inst, hreg) scr.SetProperty('droEncRep2', 'Value', tostring(EncRawVal))