Skip to main content
Participant
February 17, 2020
Answered

How to Change Transition Time with ExtendScript on Premiere

  • February 17, 2020
  • 2 replies
  • 1806 views

I want to add transition between two video. I want to use Extendscript for this, because there are too many video couple. I can create new sequence, add clips to sequence and add transition between them. Extendscript adds transition as two seconds as default. I need to change this as 0.5 second.

 

When i write this codes, it gives me "2" as result. $.writeln(app.project.activeSequence.videoTracks[0].transitions[0].duration.seconds);

 

I am trying this;
app.project.activeSequence.videoTracks[0].transitions[0].duration.seconds = 0.5;

 

But result is "2", again.
$.writeln(app.project.activeSequence.videoTracks[0].transitions[0].duration.seconds);

 

How can i do this?

This topic has been closed for replies.
Correct answer Bruce Bullis

There is no supported API for adding a transition; the code above would depend on the user having already added the transition.

2 replies

Participant
April 13, 2020

Did you solve your problem? Can you show your code how you add a transition to the sequence?

Bruce Bullis
Community Manager
Bruce BullisCommunity ManagerCorrect answer
Community Manager
April 13, 2020

There is no supported API for adding a transition; the code above would depend on the user having already added the transition.

Participant
April 14, 2020

Sad. Thanks for the reply.

Bruce Bullis
Community Manager
Community Manager
February 18, 2020

I haven't tested this, but I think you'll want to change the in or out points of the transition; the duration is computed from those. [If you _could_ set duration directly, how would PPro know whether to move the in point, or out point?]

Participant
February 19, 2020

Thank for your reply.

 

I thought the program would distribute the given time equally according to the joining point, you are right.

However, I cannot change the start and end seconds of the duration.

When I check in from PropertyExplorer, the transition's InPoint and OutPoint points seem undefined.

I need a transition that will only take 0.5 seconds.

The program can share this as 0.3-0.2 or 0.2-0.3.

 

Bruce Bullis
Community Manager
Community Manager
February 21, 2020

Seems like you have valid values for start and end; what happens if you modify those?