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

Resource container for interface background

Discussion in 'Scripting Workshop' started by Richard Vetro, Mar 15, 2014.

  1. Richard Vetro

    Richard Vetro New Member

    Messages:
    15
    Hello.

    I am trying to set up a folder will multiple Instruments.
    I want them all to have the same Background interface.
    I have been currently having to apply the background image to each instrument via "Instrument Options -> Instrument wallpaper"
    I used a simple script to enlarge the size of the interface so there is plenty of room for the image.

    Unfortunately, If I have a folder with 50 instruments, it will take a lot of time to install the same background for all instruments.
    Is there a way to set up a resource container to do this in one bulk attempt?
    I have tried, but I am new to scripting.
    I believe once a Container is created, then I can place pictures and scripts (In .txt files) in the folders.
    I have tried this, but still no luck.

    If anyone could help. It would Be greatly appreciated.

    Thank you.
     
  2. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    There's a breakdown of how RC works in KSP Reference. To load a particular image as a wallpaper, you use this:

    Code:
    on init
        set_control_par_str($INST_WALLPAPER_ID,$CONTROL_PAR_PICTURE,"wallpaper")
    end on
    Provided you have an image called "wallpaper.png" in Resources/pictures folder, along with associated .txt file.
     
  3. Richard Vetro

    Richard Vetro New Member

    Messages:
    15
    Hey.
    Thanks it works like a charm!

    Do you know if there is a method where I can Install a script in side a multi to Load a script and wallpaper for all instruments in the multi?

    lets take for example:

    i have a Kontakt multi of a Fantom X Keyboard.
    It has over 100 Instruments patches.
    i want them all to have the same Background Performance view.

    I have been currently installing the script and the Background for each patch individually.
    This takes a lot of time.

    Is there a way to do it all at once?

    I hope you have a great day!
    Cheers.

    Rich.
     
  4. Richard Vetro

    Richard Vetro New Member

    Messages:
    15
    Sorry the the confusion.

    I was talking about instrument Banks, not multis.

    thank you.
     
  5. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    Instrument banks cannot be skinned.
     
  6. Richard Vetro

    Richard Vetro New Member

    Messages:
    15
    Thanks.
    I figured that wasn't possible.
    I did some research on Multi Scripts.. and found out that they are only used for midi. :(

    I spent some time tonight and I figured out how to set-up a performance view with functioning knob for the ASDR envelope and the Cutoff and resonance of a filter.

    Is it possible to initialize a group effect in a specific slot with a script?

    I would like the script to create the Lowpass filter in slot 1 when the script loads.

    Cheers!

    BTW, I really appreciate all the help you have been giving me.

    Rich.
     
  7. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    Loading any effects via script is not possible. You have to do that manually.
     
  8. Claudiosky90

    Claudiosky90 New Member

    Messages:
    16
    You have many slots available, with a custom script you can bypass some and activate any other. Isn't it ?