My goal is to create a script that, when active, allows the user to define a brush size range (e.g, 2px to 30px), and when their cursor is over a pixel in a set “mask” paint layer, it sets the brush size relative to that pixel’s saturation.
i.e. Set Brush Range (2-30px)
Layer V Pixel = 0; Brush Size = 30px
Layer V Pixel = 127; Brush Size = 17px
Layer V Pixel = 255; Brush Size = 2px
I could use some tips in how to best get a pixel’s data in a set, inactive, hidden layer named “Brush Size Filter.” I already have a good idea in how to set brush size.
Note that for brush size you may have to emulate pressure or something, because as-is, if you just increase brush size it won’t work due to brush sizes are based on a single stroke. You can see this if you start drawing with your mouse and don’t let go, then hold the ] key which would increase brush size but won’t grow it. Of course this is only if you care about the size during a stroke and not just starting size.
I understand. My specific idea behind this is to assist line weighting for environmental scenes to convey distance. Instead of manually control size or pressure, you could use this script to allow you to keep the same physical pressure for your pen as you draw.