WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 06-11-2014, 08:20 AM
mshukun mshukun is offline
Join Date: Jan 2013
Posts: 32
Oculus <hmd>.addMessagePanel

Thank you very much for adding Oculus addMessagePanel in the Vizard 5!! I have a couple of questions regarding "addMessagePanel".

Q1: Can I change message in the "addMessagePanel" without removing and recreating "addMessagePanel" object (e.g. info_panel.message("Hello"))?

import viz
import viztask
import oculus


questions = ["Q1:", "Q2:", "Q3:"]
hmd = oculus.Rift(), viz.MainView)

def test():
    for index in range(len(questions)):
        if index <= len(questions):
            yield viztask.waitKeyChar("q")
            print questions[index]
            #Create the message panel
            info_panel = hmd.addMessagePanel(questions[index], pos=(0,0,3))
            yield viztask.waitTime(2)
            #Remove the message panel
Q2: Are there any ways to set visibility to be ON/OFF for the "addMessagePanel"?

Thank you in advance.
Reply With Quote
Old 06-11-2014, 10:57 AM
masaki masaki is offline
Join Date: Jan 2008
Posts: 63

Q1: info_panel.setText('hello')
Q2: info_panel.visible(0)

Reply With Quote
Old 06-16-2014, 07:06 AM
mshukun mshukun is offline
Join Date: Jan 2013
Posts: 32
It worked!! Thank you so much!!

Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Oculus Rift and 360 Panorama with Vizard Lite Edition mshukun Vizard 4 11-10-2015 11:17 AM
Oculus Rift Fullscreen teklab Vizard 6 05-21-2014 06:11 AM
oculus rift and inertia cube interaction problems apboone Vizard 4 03-13-2014 10:45 AM
Html and vizlink on Oculus HMD mshukun Vizard 3 10-30-2013 09:56 AM
Oculus HMD's setViewport() doesn't work jacky Vizard 1 09-25-2013 02:50 PM

All times are GMT -7. The time now is 11:02 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Copyright 2002-2018 WorldViz LLC