def __init__(self, clip): self.value = Dispatch(clip) self.name = self.value.Name self.fullName = self.value.FullName self.timeControl = Dispatch(self.value.NestedObjects("Time Control")) self.source = None for no in self.value.NestedObjects: if no.Type == "AudioSource": self.source = AudioSource(no) break
def createOrReturnPSet(obj, name): prop = obj.Properties(name) if not prop: prop = obj.AddProperty("gear_PSet", False, name) return Dispatch(prop)
def __init__(self, clip): self.value = Dispatch(clip) self.name = self.value.Name self.fullName = self.value.FullName