Hi!
Is it possible to add an existing asset (solid) from the project window (asset library) to the current composition
via scripting ?
Thanks!
Add layer to comp
Moderator: Paul Tuersley
Yes, you certainly can.
Look at "layers.add" : http://docs.aenhancers.com/layers/layer ... ection-add
Look at "layers.add" : http://docs.aenhancers.com/layers/layer ... ection-add
Code: Select all
var item = // your solid;
var comp = app.project.activeItem;
var itemAsLayer = comp.layers.add(item);