Skip to content

Commit 53b162e

Browse files
committed
Show timings of the last stroke (3 points)
1 parent b511499 commit 53b162e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

fun_ui.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,13 @@ def limitinfo(self, context):
122122
col.label("Slowest: %d" % mindist)
123123
col = row.column(align=True)
124124
col.label("Fastest: %d" % maxdist)
125+
row = bcol.row(align=True)
126+
col = row.column(align=True)
127+
laststroke = fun_script.last_stroke(seq, scene.frame_current)
128+
if laststroke is not None:
129+
up = fun_script.frame_to_ms(laststroke[1]["frame"])
130+
down = fun_script.frame_to_ms(laststroke[2]["frame"])
131+
col.label("Last stroke: %d+%d=%d ms" % (up, down, up+down))
125132

126133
def draw(self, context):
127134
self.limitinfo(context)

0 commit comments

Comments
 (0)