I've been working on a Lua script, but it requires me to move the brush to a certain position. Looking through the docs I couldn't find anything of use. If it isn't possible to do so (for security reasons or something similar), I wouldn't mind finding an alternative. Thank you.
What do you need the brush for? If it's to spawn particles you could use simulation.createParts():
sim.createParts(100, 100, 20, 10, elem.DEFAULT_PT_ROCK, sim.BRUSH_TRIANGLE)
Creates a triangle of ROCK particles with a width of 20 pixels and a height of 10 pixels at position 100, 100 as if they were painted with the triangle brush.
I need the brush because I'm developing a 'brush position stack' that allows you to save brush positions and instantly return to them whenever needed.
You can move the zoom scope though. If the user has their mouse inside the zoom window, then you can move which part of the screen the zoom window is looking at effectively moving the brush.
Thank you.