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

Adobe CEP issue with setAudioChannelMapping

New Here ,
Aug 19, 2024 Aug 19, 2024

Copy link to clipboard

Copied

Hello,

I've been working with Premiere Pro scripting and encountered an issue with the projectItem.setAudioChannelMapping function. This function takes a parameter of projectItem.getAudioChannelMapping object, which generally works as expected.

For example, consider the following code:

 

 

var seq = app.project.activeSequence;
var clip = seq.audioTracks[0].clips[0].projectItem
var mapping = seq.audioTracks[0].clips[0].projectItem.getAudioChannelMapping

mapping.setMappingForChannel(0, 0); //  
mapping.setMappingForChannel(1, 0);
clip.setAudioChannelMapping(mapping);​

 

So this code works just fine except if you have multiple audio clips in the sequence that come frome the same project item:

deva85137557_0-1724088383083.png


In this case when you modify the audio mapping object for either audio clips and set the audio channel mapping, all of the audio clips will be changed and not only the one that is "selected" in the code .  Somehow each clip is using the same instance of the projectItem.setAudioChannelMapping object. 


@Bruce Bullis  is there anyway that this can be addressed ? Much appreciated 


 

 

TOPICS
Error or problem , How to , SDK

Views

104

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 , Aug 19, 2024 Aug 19, 2024

Setting the audio mapping for a projectItem, impacts trackItems created from that projectItem.

That's unlikely to be addressed; we have no more changes planned for PPro's ExtendScript API, as we move to UXP-based extensibility. 


Votes

Translate

Translate
Adobe Employee ,
Aug 19, 2024 Aug 19, 2024

Copy link to clipboard

Copied

LATEST

Setting the audio mapping for a projectItem, impacts trackItems created from that projectItem.

That's unlikely to be addressed; we have no more changes planned for PPro's ExtendScript API, as we move to UXP-based extensibility. 


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