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

ExtendScript Change Graphics Source Text not working

New Here ,
Feb 11, 2023 Feb 11, 2023

Copy link to clipboard

Copied

I am using Adobe Premiere Pro 2023 and I am trying to edit a Graphics Layer's Source Text using ExtendScript. Everything I try to do it, it sets the Graphics Layer to a blank and removes all the text instead of setting the value

Here is what I am doing:

 

app.project.activeSequence.videoTracks[2].clips[0].components[3].properties[0].getValue('Hello', 1); 

 

I would expect the item to be updated to be updated to "Hello"

Note, this Graphics item was generated using Captions and then using the "Upgrade to Caption to Graphics" function

TOPICS
SDK

Views

800

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 , Feb 13, 2023 Feb 13, 2023

Chaining that many function calls makes it impossible to detect which failed. Also, without the actual project you're using, it's impossible to tell whether that call should work. 

PPro's .mogrt-related API calls are designed to work specifically with .mogrts generated in After Effects.

In the PProPanel example code around inserting and manipulating AE-generated .mogrts, it's necessary to call trackItem.getMGTComponent(), to access the variable params exposed by that .mogrt. Does that call succeed

...

Votes

Translate

Translate
New Here ,
Feb 11, 2023 Feb 11, 2023

Copy link to clipboard

Copied

setValue * 

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
Adobe Employee ,
Feb 13, 2023 Feb 13, 2023

Copy link to clipboard

Copied

Chaining that many function calls makes it impossible to detect which failed. Also, without the actual project you're using, it's impossible to tell whether that call should work. 

PPro's .mogrt-related API calls are designed to work specifically with .mogrts generated in After Effects.

In the PProPanel example code around inserting and manipulating AE-generated .mogrts, it's necessary to call trackItem.getMGTComponent(), to access the variable params exposed by that .mogrt. Does that call succeed, for the trackItem you're attempting to modify, above? 



https://github.com/Adobe-CEP/Samples/blob/e60d6a22ef44d8eb4cca3904c35a0c050576b697/PProPanel/jsx/PPR...

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
Community Beginner ,
Sep 20, 2023 Sep 20, 2023

Copy link to clipboard

Copied

Bruce, in the PProPanel this line always returns null

var moComp = newTrackItem.getMGTComponent();

moComp = null??

 

 

 

 

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
Community Beginner ,
Sep 20, 2023 Sep 20, 2023

Copy link to clipboard

Copied

so yes the mogrt is added but tje text is not changed.... 

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
Adobe Employee ,
Sep 20, 2023 Sep 20, 2023

Copy link to clipboard

Copied

Was the inserted .mogrt created in AE (supported), or PPro (unsupported)?

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
Community Beginner ,
Sep 20, 2023 Sep 20, 2023

Copy link to clipboard

Copied

The inserted ,mrgt was the Basic Title.mogrt that is in the  "C:\Program Files\Adobe\Adobe Premiere Pro 2023\Essential Graphics\ folder

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
Adobe Employee ,
Sep 20, 2023 Sep 20, 2023

Copy link to clipboard

Copied

LATEST

Seems to have been created in PPro; PProPanel can't get the MGTComponent either.

 

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