Hi Dan, thanks for the response. Unfortunately I get the same behaviour. I’ve also tried the following experiment:
//Add and remove temp null to clear any existing selection
var tempLayer = myComp.layers.addNull();
tempLayer.moveToBeginning();
tempLayer.remove();
// Move Cam_Null_ST to top of layer stack
var mySTLayer = myComp.layer(“Cam_Null_ST”);
mySTLayer.moveToBeginning();
mySTLayer.enabled = true;
// Add preset to 1st layer in stack
var firstLayer = myComp.layer(1);
firstLayer.applyPreset(thePreset02);
Again I get the same behaviour – rather than adding the preset to the existing first layer, a new layer solid is created and the preset applied to that. I’ve also tried applying different presets, in case there is something odd in the preset code, but it still creates a new layer.
Steve.