code/vexptoolbox/vrutil.py
def waitVRText(msg='Text', color=[1.0, 1.0, 1.0], distance=2.0, scale=0.05, keys=' ', controller=None):
    """ Display head-locked message in VR and wait for key press.
    
    Args:
        msg (str): Message text
        color: RBG 3-tuple of color values
        distance (float): Z rendering distance from MainView
        scale (float): Text node scaling factor
        keys (str): Key code(s) to dismiss message (see viztask.waitKeyDown)
        controller (sensor): Specify a controller sensor to also dismiss on button press
    
    Returns: Vizard keypress event
    """
    text = addHeadLockedText(msg=msg,
                             color=color,
                             distance=distance,
                             scale=scale)

    if controller is not None:
        event = yield viztask.waitAny([viztask.waitKeyDown(keys), viztask.waitSensorDown(controller, None)])
    else:
        event = yield viztask.waitKeyDown(keys)
    text.remove()
    viztask.returnValue(event)
 Display head-locked message in VR and wait for key press.
    
    Args:
        msg (str): Message text
        color: RBG 3-tuple of color values
        distance (float): Z rendering distance from MainView
        scale (float): Text node scaling factor
        keys (str): Key code(s) to dismiss message (see viztask.waitKeyDown)
        controller (sensor): Specify a controller sensor to also dismiss on button press
    
    Returns: Vizard keypress event
    
Display head-locked message in VR and wait for key press.
Display head - locked message in VR and wait for key press .
def waitVRText(msg='Text', color=[1.0, 1.0, 1.0], distance=2.0, scale=0.05, keys=' ', controller=None):
    text = addHeadLockedText(msg=msg,
                             color=color,
                             distance=distance,
                             scale=scale)
    if controller is not None:
        event = yield viztask.waitAny([viztask.waitKeyDown(keys), viztask.waitSensorDown(controller, None)])
    else:
        event = yield viztask.waitKeyDown(keys)
    text.remove()
    viztask.returnValue(event)
def waitVRText ( msg = 'Text' , color = [ 1.0 , 1.0 , 1.0 ] , distance = 2.0 , scale = 0.05 , keys = ' ' , controller = None ) : text = addHeadLockedText ( msg = msg , color = color , distance = distance , scale = scale ) if controller is not None : event = yield viztask . waitAny ( [ viztask . waitKeyDown ( keys ) , viztask . waitSensorDown ( controller , None ) ] ) else : event = yield viztask . waitKeyDown ( keys ) text . remove ( ) viztask . returnValue ( event )
Display head-locked message in VR and wait for key press.
Display head - locked message in VR and wait for key press .
""" Display head-locked message in VR and wait for key press.
    
    Args:
        msg (str): Message text
        color: RBG 3-tuple of color values
        distance (float): Z rendering distance from MainView
        scale (float): Text node scaling factor
        keys (str): Key code(s) to dismiss message (see viztask.waitKeyDown)
        controller (sensor): Specify a controller sensor to also dismiss on button press
    
    Returns: Vizard keypress event
    """
msg
None
color
RBG 3-tuple of color values
RBG 3 - tuple of color values
distance
Z rendering distance from MainView
Z rendering distance from MainView
scale
Text node scaling factor
Text node scaling factor
keys
Key code(s) to dismiss message
Key code ( s ) to dismiss message
controller
Specify a controller sensor to also dismiss on button press
Specify a controller sensor to also dismiss on button press