To Reproduce
Please enter code here that demonstrates the bug:
import sys
import datetime
import math
from ptsl import open_engine
from ptsl import PTSL_pb2 as pt
with open_engine(company_name="py-ptsl",
application_name=sys.argv[0]) as engine:
selection = engine.get_timeline_selection()
print(selection)
Expected behavior
Return of Timeline Selection
Platform:
Operating System: macOS 12.7.4
Pro Tools Version: 2023.12
Additional context
I tried changing
def get_timeline_selection(self) -> 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)
return (response.in_time, ops.response.out_time)
to
def get_timeline_selection(self) -> Tuple[str, str]:
"""
Returns data about the current timeline selection.
:returns: a Tuple of the In and Out time.
"""
op = ops.GetTimelineSelection()
response = self.client.run(op)
return (response.in_time, ops.response.out_time)
Describe the bug get_timeline_selection is not working. I get this error:
To Reproduce Please enter code here that demonstrates the bug:
Expected behavior Return of Timeline Selection
Platform:
Additional context I tried changing
to
but just get no return value.