Did I find the right examples for you? yes no

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)

src/c/o/concept-robot-HEAD/HRI/face/blender/__init__.py   concept-robot(Download)
import sys, time, atexit
from math import cos, sin, pi
import GameLogic as G
 
MAX_FPS = 50
def exiting():
    #We check if there is a valid "server" object because its possible that 
    #we were unable to create it, and therefore we are shutting down
    if hasattr(G, "server"):
      G.server.shutdown()
def shutdown(cont):
    """Finish animation and let atexit do the cleaning job"""
    cont.activate(cont.actuators["- QUITTER"])
    if hasattr(G, 'server'):
        sys.exit(0)
    import comm
    from lightHead_server import lightHeadServer, lightHeadHandler
    G.server = comm.create_server(lightHeadServer, lightHeadHandler,
                                  server_addrPort, THREAD_INFO)
    G.server.create_protocol_handlers()
    for obj_name in ('eye_L', 'eye_R', 'jaw', 'tongue'):
        try:
            setattr(G, obj_name, objs[OBJ_PREFIX+obj_name])
        except KeyError:
            try:

src/c/o/concept-robot-HEAD/HRI/face/blender/mask_shader.py   concept-robot(Download)
#
 
import GameLogic
object_list = GameLogic.getCurrentScene().objects;