-
Please assist with simple script
Hi folks
I have written 2 simple lines of code by taking online help. The code makes a duplicate of current layer but I am not being able to figure how can I turn the visibility off of the previous layer which was used to create this duplicate:var myComp = app.project.activeItem;
var myLayer = myComp.layer(1).duplicate();I have tried something like this but it does not work:
myLayer.index(-1).disabled;
It seems I am not using correct syntax. Please help.
Regards
Syedvar myComp = app.project.activeItem;
var myLayer = myComp.layer(1).duplicate();
myLayer.index(-1).disabled;