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

ExtendedScript - Changing the Mogrt title makes it blank

New Here ,
Aug 04, 2023 Aug 04, 2023

I am trying to change the text content of a Mogrt file using ExtendedScript but whenever I execute the code below the text becomes blank, and the Mogrt name on the video track resets to "Graphic". It's like everything's been reset to default.

 

 

var sequence = app.project.activeSequence;
var videoTrack = sequence.videoTracks[0];
var mogrt = videoTrack.clips[0];

mogrt.components[3].properties[0].setValue('test', 1)

 

 

 

The Mogrt I'm using is the Basic Title one found in the Essential Graphics tab, alternatively I used the type tool as well and the same happens in both cases.

Running on Photoshop 23.4.0.

TOPICS
SDK
319
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 1 Correct answer

Adobe Employee , Aug 07, 2023 Aug 07, 2023

The API is designed to work with .mogrts authored in After Effects, like 'from_ae.mogrt' (included in the PProPanel sample). 

Translate
Adobe Employee ,
Aug 07, 2023 Aug 07, 2023
LATEST

The API is designed to work with .mogrts authored in After Effects, like 'from_ae.mogrt' (included in the PProPanel sample). 

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