insert symbol into gl command

    Sep 15 2009 | 12:14 pm
    Is there a way to pass a symbol into a message for a gl command similar to passing integers/floats?
    If I use three number boxes and a pak into a message like so...
    glenable texture, glbindtexture tex1 , gltranslate $1 $2 $3, plane 0.5, gldisable texture
    that works how would I insert a different texture each time into this command?
    a+ gar

    • Sep 15 2009 | 4:42 pm
      May be the last on-line tutorial can help you?
    • Sep 15 2009 | 4:50 pm
      oh, very useful. I'd figured out a workaround using coll for my specific need but this tutorial example seems much more flexible. Thanks for that.
      a+ gar
    • Sep 16 2009 | 1:33 pm
      I don't really understand your question though. Messages handle symbols just like floats/ints? What am i not getting?
    • Sep 16 2009 | 5:37 pm
      My question is how do they handle messages as I can't get them to come into the standard $1-9 variables. I can't see your patch as I'm on max 4.6 so you'll need to post a screenshot if you want me to see it.
      a+ gar
    • Sep 21 2009 | 8:41 am
      Okay, went back in time to check this out, cos I couldn't remmember how this was in Max4. Below is the patch I posted here, only in Max4, where it doesn't work, lol.
      Note that you can't send lists in which the first atom is a symbol. Just make sure the first element is some kind of number, and you can add symbols after that. In Max5, this is fixed, that's why I was wondering why this was an issue at all.