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

customize transitions with scripts in Premiere pro

Community Beginner ,
May 18, 2023 May 18, 2023

I added transitions in this way.

 

 

  app.project.sequences[0].videoTracks[0];
    var transition = "Push";
    app.enableQE();
    var qeSequence = qe.project.getActiveSequence(0);
    var vanillaSequence = app.project.activeSequence;
    var qeTrackOne = qeSequence.getVideoTrackAt(0);
    var vanillaTrackOne = vanillaSequence.videoTracks[0];
    var transitionToApply = qe.project.getVideoTransitionByName(transition);
    var item = qeTrackOne.getItemAt(0);
    var item1 = qeTrackOne.getItemAt(1);
    item.addTransition(transitionToApply, false, '00;00;00;08');
    item1.addTransition(transitionToApply, false, '00;00;00;08');

 

 

I want to access Effect Controls and select "Reverse" select true.
is there a way to access the Effect Controls of a push transition with a script?

 

NguynHuPhc_0-1684400361879.png

Thank you very much.

 

 

TOPICS
SDK
741
Translate
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

Community Beginner , May 21, 2023 May 21, 2023
   app.project.sequences[0].videoTracks[0];
    var transition = "Push";
    app.enableQE();
    var qeSequence = qe.project.getActiveSequence(0);
    var qeTrackOne = qeSequence.getVideoTrackAt(0);
    var transitionToApply = qe.project.getVideoTransitionByName(transition);
    var item = qeTrackOne.getItemAt(0);
    var item1 = qeTrackOne.getItemAt(1);
    item.addTransition(transitionToApply, false, '00;00;00;08');
    item1.addTransition(transitionToApply, false, '00;00;00;08');
    var tran
...
Translate
Community Beginner ,
May 21, 2023 May 21, 2023
   app.project.sequences[0].videoTracks[0];
    var transition = "Push";
    app.enableQE();
    var qeSequence = qe.project.getActiveSequence(0);
    var qeTrackOne = qeSequence.getVideoTrackAt(0);
    var transitionToApply = qe.project.getVideoTransitionByName(transition);
    var item = qeTrackOne.getItemAt(0);
    var item1 = qeTrackOne.getItemAt(1);
    item.addTransition(transitionToApply, false, '00;00;00;08');
    item1.addTransition(transitionToApply, false, '00;00;00;08');
    var transition1 = qeTrackOne.getTransitionAt(1);
    transition1.setReverse(true)
    var transition3 = qeTrackOne.getTransitionAt(3);
    transition3.setReverse(true)

I have resolved it with this code. I really hope it will help someone.

Translate
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 ,
May 22, 2023 May 22, 2023

Great find, this might also be helpful for the QE Dom:

https://github.com/aenhancers/types-for-adobe-extras

Translate
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
New Here ,
Jul 17, 2023 Jul 17, 2023

thank you so much

Translate
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
Participant ,
Dec 17, 2023 Dec 17, 2023

dumb question, 

qeTrackOne.getTransitionAt(3);

How i can find LAST added transition number? in this case it's "3"

Translate
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 ,
Dec 17, 2023 Dec 17, 2023
LATEST

you'll want

qeTrack.numTransitions

 

Translate
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