From 21f8880099ee181c82e95b880e9d470f50296d76 Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Sat, 29 Dec 2018 12:53:18 -0800 Subject: [PATCH] Update edit.py Black and Aux Source events --- pycmx/edit.py | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/pycmx/edit.py b/pycmx/edit.py index 40fb2e4..7b226df 100644 --- a/pycmx/edit.py +++ b/pycmx/edit.py @@ -82,6 +82,19 @@ class Edit: """ return self.edit_statement.source + @property + def black(self): + """ + Black video or silence should be used as the source for this event. + """ + return self.source == "BL" + + @property + def aux_source(self): + """ + An auxiliary source is the source of this event. + """ + return self.source == "AX" @property def source_file(self): @@ -102,7 +115,7 @@ class Edit: NAME" remark on the EDL. This will return None if the information is not present. """ - if self.clip_name_statement != None: - return self.clip_name_statement.name - else: + if self.clip_name_statement is None: return None + else: + return self.clip_name_statement.name