I’m trying to set app.activeLayer.blendMode
to “overlay” but it doesn’t seem to be working.
I’ve tried
app.activeLayer.blendMode = overlay
app.activeLayer.blendMode = Overlay
app.activeLayer.blendMode = OVERLAY
app.activeLayer.blendMode = "overlay"
app.activeLayer.blendMode = "Overlay"
app.activeLayer.blendMode = "OVERLAY"
app.activeLayer.blendMode(Overlay)
and so on…
Any help is appreciated!
I don’t know what you mean with app.activelayer.blendMove but right clicking>properties then choosing a layer mode is how I do it
Sure, but I’m asking about the scripting API specifically.
The available modes are in the documentation: api/blendmode.md at main · aseprite/api · GitHub
You’re looking for BlendMode.OVERLAY
I found that, but I wasn’t sure if that was the syntax I should be using? Is app.activeLayer.blendMode.OVERLAY
correct or am I still misunderstanding? That’s really what I’m struggling with and I can’t seem to find any examples.
It would be app.activeLayer.blendMode = BlendMode.OVERLAY
, I believe. app.activeLayer.blendMode
is what you’re changing the value of, and BlendMode.OVERLAY
is fetching the “OVERLAY” value from an enum in the BlendMode class/namespace.
2 Likes
app.activeLayer.blendMode = BlendMode.OVERLAY
1 Like
Ah, okay! That makes sense, I’ll give it a shot! Much appreciated