I have a script that selects a video event that is under the cursor. My goal is to cut a few frame from this event. With the help of jetdv, I have this script working.
However, I want to also cut the same number of frames from the audio associated with the video event. I can do this by assuming that the track below contains the audio and then trimming the event that starts at the same place as the video event. Perhaps this is good enough. However, I was hoping to have some way to check whether this audio is associated with the video event. I assume I have to find the media associated with the video event, and then check whether this is the same media associated with the audio event, but I can't find a way to get the media name for a selected event. It's probably right in front of my eyes, but I'm not seeing it ...
Thanks!
However, I want to also cut the same number of frames from the audio associated with the video event. I can do this by assuming that the track below contains the audio and then trimming the event that starts at the same place as the video event. Perhaps this is good enough. However, I was hoping to have some way to check whether this audio is associated with the video event. I assume I have to find the media associated with the video event, and then check whether this is the same media associated with the audio event, but I can't find a way to get the media name for a selected event. It's probably right in front of my eyes, but I'm not seeing it ...
Thanks!