Skip to main content
Known Participant
June 18, 2019
Question

Check if sequence is Empty at getPlayerPosition() ????

  • June 18, 2019
  • 1 reply
  • 691 views

Hello my friends.

I'm trying to import a .mogrt into the sequence, but sometimes the track already has a video, and I do not want to overwrite it.

is there any method to check if the track is empty in getPlayerPosition () so I can create a new function that will create a new track above to import the new mogrt and not overwrite the previously imported video?

I do not know if i was clear.

I'm counting on your help.

Regards

Rubens Nobre

This topic has been closed for replies.

1 reply

Justin Taylor-Hyper Brew
Community Expert
Community Expert
June 18, 2019

I don't know of a way to do this without looping through all the items on your target track, comparing start/end time to tell if your new clip will overlap. If they do overlap, then you'd want to make your new track.

Known Participant
June 18, 2019

Hi @justintaylor

That's exactly the only solution I had found, I wanted to know if Adobe did not have a ready method for it.

Thank you very much.

Regards

Rubens Nobre