Extendscript trim clip (inPoint/outPoint)

New Here ,
Mar 27, 2022 Mar 27, 2022

Copy link to clipboard

Copied

I need programmatically trim clips for example 6 seconds clip i need to show 2-5 seconds from it so i should cut 0-2seconds from start and 5-6 from end:
so i've tried to set clip.inPoint.seconds = 2 and i've get this:

DangerD5E05_0-1648374189101.png

partially worked, except audio track, but i don't need it, so thats okay.

Now i'm trying to set clip.outPoint.seconds but it does nothing...

I've searched forums and i found that some issue with that was 5 years ago, it still not fixed?

I'm setting in/out points this way:

cutTimeStart = new Time();
cutTimeStart.seconds = 2;
clip.inPoint = cutTimeStart;

Is there any other way to trim clips?

TOPICS
How to , SDK

Views

67

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Mar 28, 2022 Mar 28, 2022
I think you'll want to base your new cutTimeStart on the original in point, plus 2 seconds.

Likes

Translate

Translate
Adobe Employee ,
Mar 28, 2022 Mar 28, 2022

Copy link to clipboard

Copied

I think you'll want to base your new cutTimeStart on the original in point, plus 2 seconds.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 31, 2022 Mar 31, 2022

Copy link to clipboard

Copied

LATEST

inPoint worked, outPoint doesn't affect on anything...

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines