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

Synchronize clips using ExtendScript

New Here ,
Oct 19, 2023 Oct 19, 2023

Hello,

when selecting multiple clips in the sequence timeline, the context menu offers the option "Synchronize" where synchronization using the audio is possible. How can I utilize this feature using ExtendScript?

Some snippets I gathered so far, not sure whether they are beneficial:

  • Setting selection:

 

var clips = [];
var firstClipInTrack = 0;

for(var i=0; i < qe.project.getActiveSequence().numVideoTracks; i++){
    clips.push(app.project.activeSequence.videoTracks[i].clips[firstClipInTrack]);
    clips.push(app.project.activeSequence.audioTracks[i].clips[firstClipInTrack]);
}


app.project.activeSequence.setSelection(clips);​

But I don't see a synchronization method to which I could pass the selection.

 

  • Undocumented QE method which may have something to do with synchronization:

 

qe.project.getActiveSequence().syncLockTracks(/*parameters?!*/);​

But I do not know whether that is correct and if so, what the expected method signature for calling is.

 

 

If there is a way without using qe DOM, even better!

 

Best, Steve

TOPICS
Audio , Editing , Error or problem , SDK
1.1K
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 2 Correct answers

Adobe Employee , Oct 19, 2023 Oct 19, 2023

>How can I utilize this feature using ExtendScript?

 

There is no supported ExtendScript API to synchronize trackItems. 

 

 

Translate
Adobe Employee , Dec 06, 2023 Dec 06, 2023

Menu items comprise...

In some cases, yes. 🙂

I hope UXP will provide a unified way for exposing all menu items for discovery automatically, user might encounter.

That's not among our short-term goals; I'm not sure why that would be desirable...? Not every menu item is intended to be extensible or scriptable. 

Translate
Adobe Employee ,
Oct 19, 2023 Oct 19, 2023

>How can I utilize this feature using ExtendScript?

 

There is no supported ExtendScript API to synchronize trackItems. 

 

 

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 ,
Dec 05, 2023 Dec 05, 2023

Why? Is it business a decision? Scription API is depicted as a way to access features not available from UI, but this case proves the opposite.

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
Adobe Employee ,
Dec 05, 2023 Dec 05, 2023

>Why?

Because, since we've been tracking such requests (late 2009), no partner ever requested it. 🙂

At this point, we've stopped making changes/improvements to PPro's ExtendScript API, and are instead working on exposing same/similar functionality via UXP-based integration; no dates available.

 

 

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 ,
Dec 06, 2023 Dec 06, 2023

Menu items comprise a natural tree structures of nodes with labels and functions without arguments returning callbacks, where callback arguments correspond to a form with input fields. The tree is traversable in runtime at least with linear search. I hope UXP will provide a unified way for exposing all menu items for discovery automatically, user might encounter.

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
Adobe Employee ,
Dec 06, 2023 Dec 06, 2023
LATEST

Menu items comprise...

In some cases, yes. 🙂

I hope UXP will provide a unified way for exposing all menu items for discovery automatically, user might encounter.

That's not among our short-term goals; I'm not sure why that would be desirable...? Not every menu item is intended to be extensible or scriptable. 

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