How to use Lua command on C5?

  • PTuniverse
    23rd Feb 2014 Member 0 Permalink

    I'm trying to use Lua commands (tpt.el. ....) on C5, but I don't know the key word of C5, as it does not register. Help?

  • CeeJayBee
    23rd Feb 2014 Member 0 Permalink

    Honestly don't know; the source IDs it as C5.

    Edited once by CeeJayBee. Last: 23rd Feb 2014
  • PTuniverse
    23rd Feb 2014 Member 0 Permalink

    @CeeJayBee (View Post)

     Maybe I should ask somebody who has access to the source code?

  • nucular
    23rd Feb 2014 Member 0 Permalink
    @PTuniverse
    1. Everybody has access to the source. That's the point of open source software. C5 source code
    2. You should start using the new-style API instead of the old tpt.x thing. The ID of C5 is under elem.DEFAULT_PT_C5.
  • jacksonmj
    23rd Feb 2014 Developer 1 Permalink

    tpt.el['c-5']

     

    But as nucular says, using the new-style API would be better.

    Edited once by jacksonmj. Last: 23rd Feb 2014
  • boxmein
    23rd Feb 2014 Former Staff 0 Permalink
    @PTuniverse (View Post)
    You'd really benefit from using the new API.
    Check out http://boxmein.x10.mx/tptelements/#lua for something you can instantly use to make an element with the new API.