//Creates a new project var proj = app.project; proj.item(1).item(1).layer(3).replaceSource(proj.item(2).layer(2),true);