Several executing modes, depending on pressed button

Hello Everyone! :smiley:

I’m trying to make some line drawing tool. I want to draw a line pressing e.g. button “1” and “2” to pick the start and the end of the line. Those three modes are:
“M” button pressed → mesh (“1”) - mesh (“2”)
“P” button pressed → point cloud (“1”) - point cloud (“2”)
“B” button pressed → mesh (“1”) - point cloud (“2”)

I’ve managed to make this drawing tool, but at this point, I’m using 6 keyboard buttons (1-2, 3-4, 5-6), so I want to simplify the use (always press “1” and “2” to pick the line ends).

I will be very grateful for some tips, on how to solve this problem :smiley:


Use conditional logic and booleans.

Press M → Check if mesh (1) has been deployed … if true deploy mesh (2), else mesh (1)