def addHeadsAndTails (self, handleLenght, sourceOrRecord): if sourceOrRecord == "source": self.source_in = Timecode.frameCount2timeCode (Timecode.timeCode2frameCount(self.source_in) - handleLenght) self.source_out = Timecode.frameCount2timeCode (Timecode.timeCode2frameCount(self.source_out) + handleLenght) elif sourceOrRecord == "record": self.record_in = Timecode.frameCount2timeCode (Timecode.timeCode2frameCount(self.record_in) - handleLenght) self.record_out = Timecode.frameCount2timeCode (Timecode.timeCode2frameCount(self.record_out) + handleLenght)
def shiftTimeCode (self, shiftAmount, sourceOrRecord): if sourceOrRecord == "source": self.source_in = Timecode.frameCount2timeCode (Timecode.timeCode2frameCount(self.source_in) + shiftAmount) self.source_out = Timecode.frameCount2timeCode (Timecode.timeCode2frameCount(self.source_out) + shiftAmount) elif sourceOrRecord == "record": self.record_in = Timecode.frameCount2timeCode (Timecode.timeCode2frameCount(self.record_in) + shiftAmount) self.record_out = Timecode.frameCount2timeCode (Timecode.timeCode2frameCount(self.record_out) + shiftAmount)
def getTabSeparatedRecord (self): # return tab separated record theLine = self.event_id + "\t" + self.reel_id + "\t" + self.eventType theLine = theLine + "\t" + self.cutType + "\t" theLine = theLine + self.source_in + "\t" + self.source_out + "\t" theLine = theLine + self.record_in + "\t" + self.record_out + "\t" theLine = theLine + self.slateNumber + "\t" + self.takeNumber + "\t" theLine = theLine + str(Timecode.timeCode2frameCount(self.record_out) - Timecode.timeCode2frameCount(self.record_in)) + newline return (theLine)