[SOLVED] Script Code to Switch Active tool?

Hello, @dacap or anyone else,

Is there any code’s example to change the actual active tools? I’ve read and test many codes but I’ve can’t find a way to change the actually used tools. I want to create a button in my script to change to “pencil” or the last tools used.

thank you

Hi there @MaplePixels! Did you try something like this:

app.activeTool = "pencil"

OMG, I feel idiot, I tried many alternative and the code was so simple lol. Thanks :wink:

1 Like