How to erase a grid shape?


    Sep 25 2017 | 6:03 pm
    Couldn't find the info in documentation or forums, apologies for the simple question.
    I'm trying to set up a patch where you can switch between 2 modes. Mode 1 is webcam, mode 2 is a gl shape. When I switch to webcam I would like the shape to disappear. Any ideas?

    • Sep 26 2017 | 3:46 pm
      @enable 0?
    • Sep 26 2017 | 5:01 pm
      Ah, wow. Thanks. One additional question--If I am switching between having a webcam/videoplane and a gridshape occupy the gl context, how can I disable the videoplane so there's not a flat black plane bisecting my shapes?
    • Sep 26 2017 | 6:27 pm
      @enable 0 on the videoplane? You should send enable 1 to the object you want while sending enable 0 to all the ones you don't. Here's a useful approach using the == operator. For instance, "== 2" outputs a "1" when the input matches the argument, and a "0" when it doesn't.
    • Sep 27 2017 | 12:48 am
      Incredibly helpful, thank you.