jersmi's picture

Is there a way to use Enqueue and Make Line Strip Mesh (like GeorgeToledo's Line Ribbon) and make it draw only when the mouse button is down, and leave an empty gap when the mouse button is up?


Yes, but you'll need an

Pianomatic's picture
Submitted by

Yes, but you'll need an additional Enqueue node.

In the attached composition, the line currently being drawn is rendered the same way as in Line Ribbon.vuo.

When the mouse button is released, a Select Input node is used to cease rendering the line. At that point, a Select Output node is used to forward the completed line onto the second Enqueue node, which compiles a list of all the completed lines (as Scene Objects) to be rendered.