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

Automation Blocks - Open a Comp

Contributor ,
Sep 24, 2024 Sep 24, 2024

Copy link to clipboard

Copied

I'm running a .jsx script that creates a bunch of comps and footage automatically.

I'm able to run the .jsx and it does what it does just fine. The .jsx creates a couple of comps and brings to the front one of two comps. I'm able to do some after action steps on one of the created comps "Camera01_3d" upto and including a execute menu command block "Trim Comp to Work Area". This is all great!

`

Where I'm having an issue is opening the second comp in the forefront of After Effects to run the execute menu command block on the second comp.

How can I "open" the (second) ReCamera01_3d comp to run the menu command? I tried the select project items block, and select layer(s) block and neither of these brings the comp to the front.

FixSEOffsetIssueScript.png

As always, any input is appreciated!

 

TOPICS
How to , Scripting

Views

65

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

Community Expert , Sep 24, 2024 Sep 24, 2024

There is no block in Automation Blocks for making a comp the active comp, but fortunately, the scripting API has a method openInViewer, which can be used with the Execute Code block as follows:

Screenshot 2024-09-24 at 19.58.53.png

Code is attached. 🙂

 

 

Votes

Translate

Translate
Community Expert ,
Sep 24, 2024 Sep 24, 2024

Copy link to clipboard

Copied

LATEST

There is no block in Automation Blocks for making a comp the active comp, but fortunately, the scripting API has a method openInViewer, which can be used with the Execute Code block as follows:

Screenshot 2024-09-24 at 19.58.53.png

Code is attached. 🙂

 

 

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

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