1. IMPORTANT:
    We launched a new online community and this space is now closed. This community will be available as a read-only resources until further notice.
    JOIN US HERE

Solved Fx-slots »look« empty after loading via script

Discussion in 'Scripting Workshop' started by peter123456789, Sep 22, 2021.

  1. peter123456789

    peter123456789 New Member

    Messages:
    8
    Hi,

    when loading fxs via script, the FX-slots »look« empty.
    After double-clicking one of the empty slots all FX´s magically »appear«.

    Is there a »repaint« function which i have to include after loading the FX´s?
    What would be the solution to show the FX´s directly?

    Cheers
    Peter
     
  2. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    Are you talking about the instrument edit mode, where when you load an effect via script it doesn't automatically update the GUI?

    That's a bug, you have to force a UI refresh manually. But this is really of no concern for the end user since they will be looking at your scripted interface, not in the back end.
     
  3. peter123456789

    peter123456789 New Member

    Messages:
    8
    Yes, i am talking about instrument edit mode.

    How can i refresh the GUI from script?
    Or did you mean »manually« literally?
     
  4. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    You cannot refresh it from script, you literally have to manually click somewhere (other slot, collapse a tab etc.) to force a refresh.

    Again this is not really important for users, just developers really. But it is how it is unfortunately.
     
  5. peter123456789

    peter123456789 New Member

    Messages:
    8
    Ok, thanks for confirming!
    It made me really feel uncomfortable about my script. I will sleep better now.
     
  6. peter123456789

    peter123456789 New Member

    Messages:
    8
    How can I mark this as solved?
     
Tags: