Skip to main content
Inspiring
February 14, 2026
Answered

Automation Blocks - Get Audio Tracks of Project Item

  • February 14, 2026
  • 1 reply
  • 39 views

Hi, ​@Mathias Moehl 

Is there a way I can script a ‘get audio tracks of project item’. It’s not a built in block, but I see the API has a get audio tracks code.

I’m still struggling with the custom-code block, but I’ll get there some day.

The goal here is to identify project items that have 10 channel audio (or don’t when they should).

    Correct answer Citizen_Sam

    @Mathias Moehl , 
    Got it! With help from ChatGPT. There’s a much simpler version of this, but this one bundles in both the audio type and the number of channels…

    (PS - Funny story, that sample code you linked me to… you created that as a response to a question I had over a year ago about changing audio channels of a clip to dual mono)

     



     

    1 reply

    Mathias Moehl
    Community Expert
    Community Expert
    February 14, 2026

    audio channels are not implemented in the blocks, but you can access the channel mapping with the Execute Code block. I have sample code to set the channel mapping:
    https://docs.mamoworld.com/automation-blocks/block-reference/prOther#projectitem-audio-channel-mappings

    The Audio Channel Mapping is documented here:
    https://ppro-scripting.docsforadobe.dev/other/audiochannelmapping/?h=#audiochannelmappingaudiochannelstype

    Maybe 
    getAudioChannelMapping.audioChannelsType is what you need?


     

    Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
    Citizen_SamAuthorCorrect answer
    Inspiring
    February 16, 2026

    @Mathias Moehl , 
    Got it! With help from ChatGPT. There’s a much simpler version of this, but this one bundles in both the audio type and the number of channels…

    (PS - Funny story, that sample code you linked me to… you created that as a response to a question I had over a year ago about changing audio channels of a clip to dual mono)

     



     

    Mathias Moehl
    Community Expert
    Community Expert
    February 16, 2026

    Thanks for sharing this solution, Sam!

    Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects