Page 1 of 1

Scripting API - Proper values for retimed clips

PostPosted: Wed Dec 06, 2023 3:32 pm
by philipbowser
GetLeftOffset() and GetRightOffset() currently return the wrong values on retimed clips. And since there is no way in a script to differentiate clips that have and have not been retimed, your values could be all over the place and you'd never know.

I believe that GetLeftOffset() and GetRightOffset() either need to return the absolute in and out frames post retiming, or BMD needs to add the retime properties and keyframes of a clip in the GetProperty() function of a timeline item so we can calculate it ourselves.

Thanks for your consideration!

Re: Scripting API - Proper values for retimed clips

PostPosted: Wed Dec 06, 2023 7:04 pm
by PhoenixRiddle
I totally agree that having these functions return the absolute in and out frames post-retiming would be super useful. It's definitely a bit of a hassle when you can't distinguish between retimed and non-retimed clips in scripts, leading to unpredictable results.

I think you're right about the suggestion to include retime properties and keyframes in the GetProperty() function of a timeline item. It would give much more control and precision, allowing for accurate calculations on your end.

Hopefully, BMD takes note of this and considers implementing these changes. It would make a big difference for scripters like us.

Thanks for bringing this up in the forum!