Answered
I want to determine with a script whether it is a layer created from a video file.
I tried to determine from the script (jsx) if the target layer is .hasVideo is true,
With .hasVideo alone, you can also get adjustment layers and layers created from images.
Please tell me how to determine if it is a layer created from a video.
var layers=app.project.activeItem.layers;
for(var i=1; i <= layers.length; i++){
if(layers[i].hasVideo){
alert("The target layer is a layer created from the video.");
}
}
If anyone knows how to tell if it's a layer created from a video, please let me know.