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 Picture Backgrounds Question

Discussion in 'Scripting Workshop' started by Gabriel Dib, Jan 14, 2019.

  1. Gabriel Dib

    Gabriel Dib NI Product Owner

    Messages:
    88
    Hi,

    Say I have an instrument designed to have 3 pages, each page has its own background and GUI elements.
    I know hiding and showing elements would be the neat way to do this but say I am feeling lazy and want to put each page in
    on script slot.
    How do I change the background picture between the slots?

    Detail - Using a label won't exactly do it because the background is supposed to go all the way up to the Kontakt header background.

    Is it possible?
     
  2. medusa

    medusa NI Product Owner

    Messages:
    239
    If you're using seperate script slots, you make all the backgrounds as one long graphic and use "set_skin_offset()" in the init of each script to place the background.
     
  3. Gabriel Dib

    Gabriel Dib NI Product Owner

    Messages:
    88
    Thanks Medusa!
    Duh, I assumed that the on init callback was read when the instrument was loaded not when you click on the script slot. And of course was trying fancy ways of reading that the slot was changed. Easier like this. Interesting!
     
  4. medusa

    medusa NI Product Owner

    Messages:
    239
    I don't believe on init is read when you click on the script slot, in fact pretty sure it's not. But the script slot selection updates the GUI.
     
  5. Gabriel Dib

    Gabriel Dib NI Product Owner

    Messages:
    88
    Right, makes more sense, of course.
    I prefer single slot instruments, but for the purposes of this one I didn't want to go hiding/showing dozens of elements... Thanks
     
  6. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    If you use UI IDs in an array it's very easy to do pages/tabs in a single while loop...
     
  7. Gabriel Dib

    Gabriel Dib NI Product Owner

    Messages:
    88
    True to that.

     
  8. corbo-billy

    corbo-billy NI Product Owner

    Messages:
    652
  9. MariaTurner

    MariaTurner New Member

    Messages:
    2
    Picture backgrounds are tricky. You need to find a way to remove the background, so it looks real. You can't just use photoshop to do it. It will not work because it's hard to do it properly. It's much better to do this with the background deleter from the Depositphotos website.
    It's so easy to use. Anyone can get used to it and become a pro background editor. It's nice when you know how to do this because many clients will ask you to remove/change the background from their photos. I hated doing it because it would take too long to do, but since I know about that tool, I don't mind doing it.
     
    Last edited: Jun 28, 2021
  10. juanro

    juanro New Member

    Messages:
    6
    Thanks for this question. I also have the same case. There are a number of similarities between app software and web design by https://mlsdev.com/services/mobile-app-development. Both require a certain amount of programming know-how, a high quality graphic designer, and the ability to create applications quickly. In addition, they both offer a great deal of flexibility, including the ability to manage inventory, manage customers, and much more. So what should you look for in app software or web design?
     
    Last edited: Jun 27, 2021
  11. Dima Cia

    Dima Cia New Member

    Messages:
    1