Skip to main content
m1jackson
Inspiring
September 24, 2024
Answered

Automation Blocks - Open a Comp

  • September 24, 2024
  • 1 reply
  • 407 views

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.

As always, any input is appreciated!

 

This topic has been closed for replies.
Correct answer Mathias Moehl

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:

Code is attached. 🙂

 

 

1 reply

Mathias Moehl
Community Expert
Mathias MoehlCommunity ExpertCorrect answer
Community Expert
September 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:

Code is attached. 🙂

 

 

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