Skip to main content
Inspiring
October 18, 2021
Answered

Add null to composite from project

  • October 18, 2021
  • 1 reply
  • 527 views

I used a script (autosway),
I noticed that he created only one null in the project.
How can I achieve this effect?

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

I checked the document, but I still can't set


Have you tried the replaceSource function?

https://ae-scripting.docsforadobe.dev/layers/avlayer/#avlayer-replacesource

1 reply

damomoyuAuthor
Inspiring
October 18, 2021

Effect of script:

I generated 10 "nulls" in "comp 1" through autosway, and the project shows that nulls have been used 10 times,

I generated 15 "nulls" in "comp 2" through autosway, and null was used 25 times in the project.

Mathias Moehl
Adobe Expert
October 18, 2021

Say you create two null layers (let's call them LA and LB). This also creates two project items (let's call them PA and PB).

Now you can set the source of LB to PA and then delete PB from the project.

 

Mathias Möhl - Developer of tools like BeatEdit and Automation Blocks for Premiere Pro and After Effects
damomoyuAuthor
Inspiring
October 20, 2021

How can I set the source of LB to PA?