Copy link to clipboard
Copied
I have a clip that has some time remapping on it, once I do double click on the clip it opens the clip in the source panel and I can see the in and out points, if I playback the video in the source it will also show the time remapping
now if I get from the trackItem.inPoint and outPoint and import the code into another sequence:
projectItem.clearInPoint();
projectItem.clearOutPoint();
projectItem.setInPoint(clipData.inPoint, 4);
projectItem.setOutPoint(clipData.outPoint, 4);
targetVideoTrack.overwriteClip(projectItem, insertTime);
it will import the clip without time remapping ( i dont need it anyway), but it will trim the duration of the clip to match exactly in and out pounts, but how to get the whole duration of the part of footage that was originally used?
You would need to get the value used in the time remapping (I'm not sure whether that's available via that trackItem's component params), and 'do time math' to determine when the actual in/out points in use were in the original sequence, in which time remapping was applied.
>(I'm not sure whether that's available via that trackItem's component params)
Sounds like you've done the right testing, and that value is not available.
Copy link to clipboard
Copied
You would need to get the value used in the time remapping (I'm not sure whether that's available via that trackItem's component params), and 'do time math' to determine when the actual in/out points in use were in the original sequence, in which time remapping was applied.
Copy link to clipboard
Copied
can you please explain a bit deeper on how to get the value of the time remapping? The trackItem.components have only motion and opacity properties
Thank you in advance!
Copy link to clipboard
Copied
>(I'm not sure whether that's available via that trackItem's component params)
Sounds like you've done the right testing, and that value is not available.