code/vexptoolbox/vrutil.py
def showVRText(msg='Text', color=[1.0, 1.0, 1.0], distance=2.0, scale=0.05, duration=3.0):
    """ Display head-locked message in VR for specified duration.
    
    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
        duration (float): Message display duration (seconds)
    """
    text = addHeadLockedText(msg=msg,
                             color=color,
                             distance=distance,
                             scale=scale)
    
    # Fade text away after <duration> seconds
    fadeout = vizact.fadeTo(0, time=0.7)
    yield viztask.waitTime(duration)
    text.addAction(fadeout)
    yield viztask.waitActionEnd(text, fadeout)
    text.remove()
 Display head-locked message in VR for specified duration.
    
    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
        duration (float): Message display duration (seconds)
    
Display head-locked message in VR for specified duration.
Display head - locked message in VR for specified duration .
def showVRText(msg='Text', color=[1.0, 1.0, 1.0], distance=2.0, scale=0.05, duration=3.0):
    text = addHeadLockedText(msg=msg,
                             color=color,
                             distance=distance,
                             scale=scale)
    fadeout = vizact.fadeTo(0, time=0.7)
    yield viztask.waitTime(duration)
    text.addAction(fadeout)
    yield viztask.waitActionEnd(text, fadeout)
    text.remove()
def showVRText ( msg = 'Text' , color = [ 1.0 , 1.0 , 1.0 ] , distance = 2.0 , scale = 0.05 , duration = 3.0 ) : text = addHeadLockedText ( msg = msg , color = color , distance = distance , scale = scale ) fadeout = vizact . fadeTo ( 0 , time = 0.7 ) yield viztask . waitTime ( duration ) text . addAction ( fadeout ) yield viztask . waitActionEnd ( text , fadeout ) text . remove ( )
Display head-locked message in VR for specified duration.
Display head - locked message in VR for specified duration .
""" Display head-locked message in VR for specified duration.
    
    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
        duration (float): Message display duration (seconds)
    """ # Fade text away after <duration> seconds
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
duration
Message display duration (seconds)
Message display duration ( seconds )