Skip to content

Commit

Permalink
Fixed mis-written get_timeline_selection() function
Browse files Browse the repository at this point in the history
This fixes #36
  • Loading branch information
iluvcapra committed May 11, 2024
1 parent 8a3b1e0 commit 653463c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ptsl/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,12 +936,12 @@ def select_tracks_by_name(self, names: List[str],
op = ops.SelectTracksByName(track_names=names, selection_mode=mode)
self.client.run(op)

def get_timeline_selection(self) -> Tuple[str, str]:
def get_timeline_selection(self, format: pt.TrackOffsetOptions = pt.TrackOffsetOptions.TimeCode) -> Tuple[str, str]:
"""
Returns data about the current timeline selection.
:returns: a Tuple of the In and Out time.
"""
op = ops.GetMemoryLocations()
response = self.client.run(op)
op = ops.GetTimelineSelection(time_scale=format)
self.client.run(op)

return (response.in_time, response.out_time)
return (op.response.in_time, op.response.out_time)

0 comments on commit 653463c

Please sign in to comment.