Python

From kJams Wiki
Revision as of 19:44, 15 August 2013 by Dave (talk | contribs)
Jump to navigation Jump to search

If you're looking for the open-sourced C++ Embedding Code.

kJams 2 requires Python 2.7, 32bit. You can download it here. Be sure to get the right one! For windows: "Windows (x86)", for mac: "Mac OS X (10.5+, x86_64/i386)"

What's working

  • All the Scripting commands under the "Or Try This" section
  • Access to every menu item (not including sub-menus just yet)
  • Access to all preferences including secret prefs (prefs that otherwise have no user interface)
  • ability to show a progress bar in the activity window
  • ability to kill off a script (stop sign in activity window)
  • Much of the Server functionality including:
    • fetching playlists (eg: Library, Rotation, Venue (list of singers)) etc
    • fetching info including venue name
    • singer creation and/or login
    • getting singers' lists (tonight, history, faves)

What's Coming

  • add songs to singer
  • reorder songs within a playlist (including singer)
  • song meta data editing
  • sub-menu access
  • get/set selected playlist
  • get/set selection within playlist
  • the rest of the Scripting commands
  • whatever else you need

Tips

  • Pick "Advanced->Python->Reveal “kj_commands.py”", this will give you a list of script commands, and server commands. note: not all server commands are working
  • A script named "startup.py" will be run on startup, so if eg: you always want to ensure some prefs are set correctly, regardless of what someone may have changed, you can use this script to set some prefs the way you like them.
  • Picking anything from the Python menu will run it. Holding the alt/option key when picking it will reveal (open) the file instead
  • You should open each of the files and look at them for examples