I'm assuming it's possible to create an adjustment layer without Script Listener code, but I can't figure out how. I can create a normal layer and change it to a text layer and that seems to be about it. I was specifically trying to create a Photo Filter layer. I can do it with Script Listener code, but now I'm just curious.
Example:
adjLayer=app.activeDocument.artLayers.add().kind=LayerKind.TEXT; <--This works.
adjLayer=app.activeDocument.artLayers.add().kind=LayerKind.PHOTOFILTER ; <--Does not work.
It allows changing to/from either a normal or text layer only. There is also a photoFilter() method which allows adjusting the values of a Photo Filter layer but only if one already exists.
So it appears that the add() method in the artLayers collection is only good for adding a normal or text layer. Is there any way to add an adjustment layer (other than using Script Listener code)?
Am I missing something simple?