This is a simple Plugin that simulates a Drag stroke given its length and direction.
First, you need to assign a HotKey to the “Drag” button, then set the length and direction. Using the mouse (easier) or pen and using the assigned hotkey ( not a mouse click) you can very quickly produce steady regular strokes.
I made it with the idea of helping with Insert Multimesh IMM brushes. Sometimes you need that every insert mesh has the same size, orientation or both (for screws or bolts for example). Later I started using it also with standard brushes and DragRect or simply with Dots to create straight lines.
The LengthRn slider adds a random value to the stroke length and the DirectionRn adds a random angle. So Direction 90 would produce a vertical line and , if you add DirectionRn 20, the angle of every stroke will be between 90 and 110.
MIMRandom switch. If pressed every stroke will insert a different mesh from the IMM brush, If not pressed it will always insert the selected.
Variation Slider. Normaly you want to set this number to match the number of meshes of your IMM brush but , for example, you might want to play with the first 5 meshes only so you would se this value to 4.