Skip to main content
Participant
July 26, 2017
Answered

Reading Text Layer in clip?

  • July 26, 2017
  • 1 reply
  • 1958 views

Hello Adobe-Team,

I'm looking for a way to programmatically read the content of a text-layer-clip from a sequence in Adobe Premiere Pro.


I've come to a point where I was able to get the property name and nearly each of the values of the properties of that text layer but I cannot figure out how to get the content in JSX.

In Photoshop this would be something like .textItem... but here in Premiere all I get is:

for (var propertyName in app.project.activeSequence.videoTracks[1].clips[lvi].components[2].properties[0])
{
$.writeln(propertyName);
}

-> displayName which content is "Quelltext" which is not the textual content of the layer but just the name.

Any help would be appreciated.

Best regards,

Mirko

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

There is currently no API for getting the text (strings) out of clips, Text layers, or Titler instances. We're working on it.

1 reply

Bruce Bullis
Bruce BullisCorrect answer
Legend
July 27, 2017

There is currently no API for getting the text (strings) out of clips, Text layers, or Titler instances. We're working on it.

Participant
May 29, 2018

Bruce, I did find that you can get to the text in a video by following a path similar to this: JSON.stringify(app.project.sequences[0].videoTracks[0].clips[0].components[2].properties[0].getValue());

The component at index 2 will be the Text, if there is text in the video, and properties[0] is usually Source Text, and if you stringify the value returned, then you can parse it and turn it into a JS object to work with. It's weird and has some strange params in it.

Is this experimental or new, maybe?

Bruce Bullis
Legend
May 29, 2018

It's new.

I think what you've noticed is that, for PPro-sourced .mogrts, you get the actual source text, while for AE-source .mogrts, you get a blob of JSON.