• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

[script] change speed/duration if there is shortage of time after clip is replaced prpro script

Explorer ,
Mar 23, 2022 Mar 23, 2022

Copy link to clipboard

Copied

 I was working on a premiere pro script and I am facing a problem.. 

I have replaced a clip. But the initial clip duration is 20 seconds and  newly replaced clip duration is 10 seconds. 
How to stretch such that there is no gap left. 
 
This is after replacing the original clip there gap due to the original clip having more length than the new replaced clip. [below image]
Screenshot (14)_LI.jpg
 
After Stretching the clip using speed duration manually. I got the desired result. [below image]
Screenshot (13)_LI.jpg
 
 
How to do this via Script​ if there is a gap(shortage of duration) after replacing. 
Thanks in advance
TOPICS
SDK

Views

456

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 23, 2022 Mar 23, 2022

There is no API for determining when "danger bars" (diagonal lines) appear. 

Before you replace old media with new media in existing clips, your script needs to make sure there IS actual media, in the corresponding source media time range.

Votes

Translate

Translate
Community Expert ,
Mar 23, 2022 Mar 23, 2022

Copy link to clipboard

Copied

Votes

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 23, 2022 Mar 23, 2022

Copy link to clipboard

Copied

Anna Beans thanks for replay but Nope that not my question. Is there way in extended script to known from these diagonal lines on clip. so i can automate to match duration of the orignal clip. 

1) I have no promblem with diagonal lines on clip, i want check if the clip has diagonal lines after replacing the clip. if so how to detect in premiere pro extended script. 

Votes

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
Community Expert ,
Mar 23, 2022 Mar 23, 2022

Copy link to clipboard

Copied

I know that is not your question but doc explains the issue.

Votes

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 23, 2022 Mar 23, 2022

Copy link to clipboard

Copied

@Ann Bens  yes. Why i getting these diagonal lines on clips, i understand(as on doc third point.)

i am using script that is  changeMediaPath

image.png

This will not change footage or media file name but  just replace that contains of it. Now 

I want to known which clip has these diagonal lines. what is the code for that.

How to known this from(script) which time to which time there is diagonal lines on clip in extended script. do have any api to detect that. 

that is length of clip or length of diagonal lines on clip. whats is code. Thanks in advnace.

Votes

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
Community Expert ,
Mar 23, 2022 Mar 23, 2022

Copy link to clipboard

Copied

Votes

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
Adobe Employee ,
Mar 23, 2022 Mar 23, 2022

Copy link to clipboard

Copied

LATEST

There is no API for determining when "danger bars" (diagonal lines) appear. 

Before you replace old media with new media in existing clips, your script needs to make sure there IS actual media, in the corresponding source media time range.

Votes

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