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

knobman

Discussion in 'Scripting Workshop' started by Worra, Mar 14, 2013.

  1. Worra

    Worra NI Product Owner

    Messages:
    355
    I feel more like a noobman here...
    I'm trying to get some kind of understanding of the great Knobman-program.
    So, I found this slider that I wan't to use. The slider was in a knob-format, so it just loaded into knobman and looks great.
    I the export it as a stiched png file and end up with a png with all the different frames of the slider arranged vertically, wich looks ok.
    I then put it in the Resources/pictures folder and generate a new recourse container.
    I also have an empty txt file with the same name as the png file in the pictures-folder

    But, in Kontakt, the slider turns up as the png file looks! That is a serie of sliders next to eachother in different positions....
    What am I doing wrong here?
     
  2. Przemek K.

    Przemek K. Forum Member

    Messages:
    131
    Hi Worra,

    what you also need is the text file containing the following text:

    Has Alpha Channel: yes
    Number of Animations: 127Horizontal Animation: no
    Vertical Resizable: no
    Horizontal Resizable: no
    Fixed Top: 0
    Fixed Bottom: 0
    Fixed Left: 0
    Fixed Right: 0

    If your animated slider has lets say only 64 animations you'have to change the number. Only that way Kontakt knows how to handle it.
     
  3. Worra

    Worra NI Product Owner

    Messages:
    355
    Didn't work.... still get just a series of the different frames...
    I've attached the png file. Any ideas?
     

    Attached Files:

  4. Przemek K.

    Przemek K. Forum Member

    Messages:
    131
    Hi Worra,

    I'd guess that you exported the animation with wrong settings maybe.
    Here is an test instrument with my slider.

    If you want to you can send the knobman file and I could see what can be done.
     

    Attached Files:

    • Test.zip
      File size:
      36.6 KB
      Views:
      434
  5. Worra

    Worra NI Product Owner

    Messages:
    355
    That would be great. Knobman seems like a good prog and I'd like to get over the initial "learning-bump".
    I've attached the knobman-file.
    I haven't made it, not really there yet... Something I downloaded.
     

    Attached Files:

  6. Przemek K.

    Przemek K. Forum Member

    Messages:
    131
    Hello again :)

    problem solved. I attached a new test instrument with the corrected slider animation png. You can delete the previous folder with the containing picures and so on and use this instead.
     

    Attached Files:

    • Test.zip
      File size:
      265.3 KB
      Views:
      421
  7. Worra

    Worra NI Product Owner

    Messages:
    355
    Yep, that worked! What had I done wrong?
     
  8. Przemek K.

    Przemek K. Forum Member

    Messages:
    131
    Cool :) hard to tell what went wrong with your png export. I sort of remember a bug in a very early version of knobman where even when you set the export to png with alpha you still had to add the ".png" ending, because if you didn't the exported file would look different. I'm using version 1.51 and it works here.

    If you want to I could give you a hand on creating GUI related stuff (animations, UI).
     
  9. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    I would also advise using a lot of animations (128) to make the knob or slider look smooth when it's moved.

    Also, it is more accustomed to have vertical sliders lined up in horizontal strips, as opposed to vertical strips. Just a matter of preference, really, but I find it better that way.
     
  10. Worra

    Worra NI Product Owner

    Messages:
    355
    I'm using the java version of Knobman since I'm on a Mac. But I tried raising the animation to 127, and then everything worked!
    Thanks!
     
  11. Przemek K.

    Przemek K. Forum Member

    Messages:
    131
    You can also use fewer animations like 4 for example. This way you could use a slider or knob as a 4 way switch.
     
  12. Aaron Dirk

    Aaron Dirk Forum Member

    Messages:
    43
    I'm having this same issue where the frames are showing stacked vertically in Kontakt5
    I'm also using Knobman on a mac.

    I have the .txt file in place

    At this point, I think a setting is wrong in Knobman when I export.
    But I have no idea what it could be.

    Below, is a knob downloaded from the Knobman Gallery.
    Which leads me to believe it's something with the export and not something I did in creation

    . 2014-04-26 12.32.43 am.jpg
     
  13. Big Bob

    Big Bob Forum Member

    Messages:
    606
    I guess this is too simple but, are you sure you have the animation direction correct in the text file?

    If your animation frames are stacked vertically, you have to set Horizontal Animation: NO (meaning you want vertical animation). And, of course you need to also specify the correct number of frames with Number of Animations. Why not post your corresponding text file so we can see it?

    Rejoice,

    Bob
     
  14. Aaron Dirk

    Aaron Dirk Forum Member

    Messages:
    43
    Has Alpha Channel: yes
    Number of Animations: 128
    Horizontal Animation: no
    Vertical Resizable: no
    Horizontal Resizable: no
    Fixed Top: 0
    Fixed Bottom: 0
    Fixed Left: 0
    Fixed Right: 0
     
  15. Aaron Dirk

    Aaron Dirk Forum Member

    Messages:
    43
    The first is one I made.
    The other three are from the Knobman gallery

    Aside from mine not displaying right, one of the other three doesn't either
    From studying the 2 that did work in Knobman, I can't seem to see anything why they work and the others don't

    The text has the right animation number and horizontal is no
    I tried the the webknobman, but the images translated poorly.

    2014-04-27 01.03.30 am.jpg
     
  16. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    Is the number of frames in the .txt file correct?
     
  17. Big Bob

    Big Bob Forum Member

    Messages:
    606
    Yes, do the PNGs you are using with this text file have 128 frames stacked vertically? Have you counted them? Also, are you sure that the text file has exactly the same name as the PNG?
     
    Last edited: Apr 27, 2014
  18. Aaron Dirk

    Aaron Dirk Forum Member

    Messages:
    43
    I didn't count the .png with 128 frames (they were too small to count showing all on the screen)
    So, I reduced it to 20 frames in Knobman, and changed the text 20 frames
    The result was the same in Kontakt

    Here's a zip of it.
    It has 4 files (.knob .png .txt and the script.txt)
     

    Attached Files:

  19. Big Bob

    Big Bob Forum Member

    Messages:
    606
    Hi Aaron,

    There was something wrong with your script text file. The original line that changes the skin didn't compile for me in the KSE. So, I retyped the line and then it compiled OK. Then I put it in my version of K5 and it seems to run OK now. Maybe you have some invisiible characters in that line of code?

    Rejoice,

    Bob

    EDIT: Hey Aaron, I think the problem I had with compiling might have been the quotes around MultiKnob2. They look like maybe they are in italics? The other thing I noticed is when K5 was displaying the vertical column of sliders (your original complaint), when I examined the copy of the text file I put with the PNG, it said number of animations was zero! When I changed this to 20 it started working. Why it had changed to zero I don't know but again, maybe you have some condition whereby invisible characters are getting into your text files?

    Maybe you had better go over all your script text and pix text files with a fine toothed comb?
     
    Last edited: Apr 27, 2014
  20. Aaron Dirk

    Aaron Dirk Forum Member

    Messages:
    43
    that's interesting.....

    Awhile ago I tried pasting a large script gh made for me several years ago, and Kontakt kept saying "--- cannot display ---"
    which was really baffling, as the script had worked fine for years
    it turned out there were three copyright symbols that were somehow messing things up.
    Talk about finding a needle in a haystack, it was a huge script!
    Instruments that already had the script loaded, were fine. So it was a new pasting issue.

    Years ago, I had an issue with with mac pasting one of gh's scripts in Kontakt3
    I think it was the same script actually.
    The script, had a label that had "© Günter Hirscher" and for some reason, the mac Kontakt3 couldn't handle displaying "ü"
    I thought it was weird german software couldn't handle an umlaut.
    On PC it was fine, and if the instrument was done on a pc and loaded into a mac, it was fine.

    I guess Kontakt on macs just doesn't like pasting?

    As for this text file issue.
    I have no idea why it shows zero, I see 20 on my end
    I'm saving as a plain text Unicode (UTF-8), should it be something else?
    I think I originally pasted it from the Kontakt 4 developers guide.... LOL

    2014-04-27 06.11.45 pm.jpg