Files @ 9bf9685f5aae
Branch filter:

Location: light9/bin/kcclient

David McClosky
curvecalc exprs can return a whole Submaster now
subterms will be ignored -- we only use the Submaster in this case
#!/usr/bin/env python

"""send KeyboardComposer a fade request, for use from the shell"""

import sys,xmlrpclib
import run_local
from light9 import networking

subname = sys.argv[1]
level = float(sys.argv[2])
fadesecs = 0
if len(sys.argv)>3:
    fadesecs = float(sys.argv[3])

levelserver = xmlrpclib.ServerProxy("http://%s:%s" %
                                    (networking.kcServer(),
                                     networking.kcPort()))

levelserver.fadesub(subname,level,fadesecs)