I'm using the 8.8 version using uni ruby script, I got stuck in a point where I want to update a value in Method UI using SetDouble, but the value doesn't seem to be updated
Ex:
Code: Select all
def Init
Method().AddChoiceList("SyringeSizeList", "Syringe Size[uL]", $syringeSize[0],"ChangeInjectionVolume")
for i in $syringeSize do
Method().AddChoiceListItem("SyringeSizeList", i)
end
@injectionVolume=Method().GetString("SyringeSizeList").to_f*0.5
Method().AddDouble("SampleVolume", "Sample Volume", @injectionVolume/1000, 1,EMeaningVolume,"")
end
def ChangeInjectionVolume(uiitemcollection, value)
@injectionVolume=Method().GetString("SyringeSizeList").to_f*0.5
Method().SetDouble("SampleVolume",@injectionVolume)
end