def key(self, time, value, interpolation=Linear):
    time = om.MTime(time, om.MTime.uiUnit())
    index = self._fna.find(time)
    if index:
        self._fna.setValue(index, value)
    else:
        self._fna.addKey(time, value, interpolation, interpolation)
def key(self, time, value, interpolation=Linear):
    time = om.MTime(time, om.MTime.uiUnit())
    index = self._fna.find(time)
    if index:
        self._fna.setValue(index, value)
    else:
        self._fna.addKey(time, value, interpolation, interpolation)