Notifications
Clear all

[Closed] PainterInterface: What is a hit?

I’m playing with the painter interface, and I have a fundamental question that I can’t seem to find the answer to. What is a Hit?

I have adapted some of the example code to my own script, and it’ll properly place geometry at my cursor point as I make a stroke. But it seems to randomly place geometry down depending on the speed of the mouse move. I assume it places a piece of geometry down at each hit, but how does it decide that a hit has occured? It doesn’t seem to be time based, or vertex based or distance based. If I want it to hit more frequently or less frequently, how could I do that? Is there a way to modify a hit? The hit always seems to occur in the center of the brush circle. Could I request that a hit occurs at a random spot inside the brush circle? Any info is appreciated.

  • Neil
1 Reply

Neil – from my experience a hit isn’t dependent on movement as it is on time. Thus the use of the lag rate in painter options. For instance, putting a division remainder test in the stroke function can decrease the number of hits dramatically if you don’t need a lot of refinement.

Khye