def GetValueAtTime(channel, time): clipstart = sessionutils.getCurrentShot().GetStartTime() start = channel.FindOwnerClipForChannel(sessionutils.getCurrentShot()).GetStartTime() return channel.GetLog().GetValue((time - clipstart) - start)
def SetValueAtTime(channel, time, value): clipstart = sessionutils.getCurrentShot().GetStartTime() start = channel.FindOwnerClipForChannel(sessionutils.getCurrentShot()).GetStartTime() channel.GetLog().SetKey((time - clipstart) - start, value); #end