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

What folder are the instrument icons stored in?

Discussion in 'Scripting Workshop' started by TechLo, Aug 31, 2010.

Thread Status:
Not open for further replies.
  1. TechLo

    TechLo NI Product Owner

    Messages:
    187
    And if I had icon graphics to the folder will they show up as a possible selection inside of Kon4 (not filtered out because of some code)? Thanks to whoever might know.
     
  2. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    Suggested way of doing this (Windows XP):

    1. Open your My Documents folder, then navigate:

    ...\My Documents\Native Instruments\Kontakt 4\Pictures

    2. Inside this folder, create a folder with your company name, and your library name inside that new folder (this is to tidy stuff up, other libraries might be using this feature as well). So, it would look something like this:

    C:\Documents And Settings\%username%\My Documents\Native Instruments\Kontakt 4\Pictures\<company name>\<library name>\your files here

    3. Put your custom images there, including instrument icons.

    4. Let's say we have an icon called "icon1.png". You call it from the KSP script with:

    Code:
    set_control_par_str($INST_ICON_ID,$CONTROL_PAR_PICTURE,"<company name>\<library name>\con1.png")

    That's it.


    If you were referring to the built in instrument icons, they are nowhere to be found, I presume they are packed in the .exe.
     
  3. TechLo

    TechLo NI Product Owner

    Messages:
    187
    Ah, you're right, ED, I'd forgotten that the KSP reference guide is where I'd read about replacing the icon...duh! Good tips on organizing the graphics folders as well, thanks. A 30 width x 35 height graphic file is about the best fit for that icon spot, from quick trial and error, btw.
     
    Last edited: Aug 31, 2010
  4. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    Icon size should be (from Kontakt Player Developer Guide) 33x34 pixels.
     
  5. kb123

    kb123 NI Product Owner

    Messages:
    1,255
    Hi ED,

    Where can I get hold of the Kontakt Player Developer Guide?
     
  6. TechLo

    TechLo NI Product Owner

    Messages:
    187
    +1 :)
     
  7. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    Check your PMs, misters!
     
  8. corbo-billy

    corbo-billy NI Product Owner

    Messages:
    652
    I have not found the file on a MAc _
     
  9. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    Mac has a different location for those files. I can't help you with that, unfortunately, since I don't own one.
     
  10. musicman7p

    musicman7p Forum Member

    Messages:
    339
    OFF TOPIC:

    @TechLo I checked out your music on soundclick I like it...... Pretty good stuff
     
  11. elxsound

    elxsound NI Product Owner

    Messages:
    23
    I can't get this to work yet... I'm on a Mac.

    I figured the address to be:

    /Library/Application Support/Native Instruments/Kontakt 4/pictures

    I even named my image con1 just to play it safe, and still no luck.

    I also have a question about what happens when distributing a product with the additional images (since I also don't have the developer guide as it doesn't seem to be included with K4). Would an installer need to be created, to place the images in the correct directories, or are they save along with the files (samples, wallpaper, etc...)?
     
  12. kb123

    kb123 NI Product Owner

    Messages:
    1,255
    Yep, you would need an installer to place the images if you wanted to install without user input

    As far as I'm aware (not having a mac) you are putting the images in the correct location, so perhaps there is another problem
     
  13. elxsound

    elxsound NI Product Owner

    Messages:
    23
    Okay, that's what I needed to hear. I'm not sure I want to go down the installer route for now.

    I'm going to give this another try later since it might just be a simple error on my part. If I run into more issues, I'll just try this later on the PC.

    :)
     
  14. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    Check your script. You should have all forward slashes when using a path to the picture. But since you're a Mac user, you probably did that correctly. Can you paste some example code?
     
  15. elxsound

    elxsound NI Product Owner

    Messages:
    23
    Location of the newly created icon, icon1.png (33x34 pixels): /Library/Application Support/Native Instruments/Kontakt 4/pictures/test/test

    I'm attempting this on a newly created instrument (no samples or any additional scripting).

    And I've checked the slashes, as I'm a PC user and a Mac user, so I definitely do get confused sometimes. :eek:

    This is all I've typed:

    on init
    set_control_par_str($INST_ICON_ID,$CONTROL_PAR_PICTURE,"test/test/icon1.png")
    end on
     
  16. TechLo

    TechLo NI Product Owner

    Messages:
    187
    Hey, thanks musicman -- just barely saw your comment on this resurrected threat, lol. I'm looking forward to making some new tracks when this massive BooTweak script/library project of mine has finally settled down (next year maybe? lol).
     
  17. kb123

    kb123 NI Product Owner

    Messages:
    1,255
    dont think you need the .png, try that :)
     
  18. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    Yeah, you don't need the .png mentioned:

    on init
    set_control_par_str($INST_ICON_ID,$CONTROL_PAR_PICTURE,"test/test/icon1")
    end on
     
  19. elxsound

    elxsound NI Product Owner

    Messages:
    23
    :lol: I love it when it's that simple! Okay, I'm off to give it a try, but thank you very much kb123 and EvilDragon!
     
Thread Status:
Not open for further replies.