mirror of
https://github.com/iluvcapra/pycmx.git
synced 2025-12-31 17:00:53 +00:00
Code Style/Blank lines
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
# (c) 2018 Jamie Hardt
|
# (c) 2018 Jamie Hardt
|
||||||
|
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
||||||
from .parse_cmx_statements import (parse_cmx3600_statements, StmtEvent,StmtFCM )
|
from .parse_cmx_statements import (parse_cmx3600_statements, StmtEvent,StmtFCM )
|
||||||
from .edit_list import EditList
|
from .edit_list import EditList
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,12 @@
|
|||||||
# pycmx
|
# pycmx
|
||||||
# (c) 2018 Jamie Hardt
|
# (c) 2018 Jamie Hardt
|
||||||
|
|
||||||
from .util import collimate
|
|
||||||
import re
|
import re
|
||||||
import sys
|
import sys
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
from itertools import count
|
from itertools import count
|
||||||
|
|
||||||
|
from .util import collimate
|
||||||
|
|
||||||
StmtTitle = namedtuple("Title",["title","line_number"])
|
StmtTitle = namedtuple("Title",["title","line_number"])
|
||||||
StmtFCM = namedtuple("FCM",["drop","line_number"])
|
StmtFCM = namedtuple("FCM",["drop","line_number"])
|
||||||
|
|||||||
@@ -1,12 +1,11 @@
|
|||||||
# pycmx
|
# pycmx
|
||||||
# (c) 2018 Jamie Hardt
|
# (c) 2018 Jamie Hardt
|
||||||
|
|
||||||
|
|
||||||
class Transition:
|
class Transition:
|
||||||
"""
|
"""
|
||||||
A CMX transition: a wipe, dissolve or cut.
|
A CMX transition: a wipe, dissolve or cut.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
Cut = "C"
|
Cut = "C"
|
||||||
Dissolve = "D"
|
Dissolve = "D"
|
||||||
Wipe = "W"
|
Wipe = "W"
|
||||||
@@ -14,12 +13,9 @@ class Transition:
|
|||||||
Key = "K"
|
Key = "K"
|
||||||
KeyOut = "KO"
|
KeyOut = "KO"
|
||||||
|
|
||||||
|
|
||||||
def __init__(self, transition, operand):
|
def __init__(self, transition, operand):
|
||||||
self.transition = transition
|
self.transition = transition
|
||||||
self.operand = operand
|
self.operand = operand
|
||||||
self.name = ''
|
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def kind(self):
|
def kind(self):
|
||||||
@@ -49,13 +45,11 @@ class Transition:
|
|||||||
"`True` if this traansition is a dissolve."
|
"`True` if this traansition is a dissolve."
|
||||||
return self.transition == 'D'
|
return self.transition == 'D'
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def wipe(self):
|
def wipe(self):
|
||||||
"`True` if this transition is a wipe."
|
"`True` if this transition is a wipe."
|
||||||
return self.transition.startswith('W')
|
return self.transition.startswith('W')
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def effect_duration(self):
|
def effect_duration(self):
|
||||||
"""The duration of this transition, in frames of the record target.
|
"""The duration of this transition, in frames of the record target.
|
||||||
|
|||||||
Reference in New Issue
Block a user