How to set $cc_num on ui_control

Discussion in 'Scripting Workshop' started by CK_S, Jul 11, 2019.

  1. CK_S

    CK_S NI Product Owner

    Messages:
    53
    I think it is simple thing, I had seen some other posts last week and I had discovered that accidentally.
    Now I can't remember what thread was ...:thumbsdown:
     
  2. EvilDragon

    EvilDragon Moderator Moderator

    Messages:
    14,970
    set_controller()?
     
  3. CK_S

    CK_S NI Product Owner

    Messages:
    53
    tried that on xy pad control but no luck so far
     
  4. EvilDragon

    EvilDragon Moderator Moderator

    Messages:
    14,970
    For XY pad you need to convert from real numbers to integers and scale it so that the result is 0-127 if you want to use it with set_controller().