WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-11-2014, 08:20 AM
mshukun mshukun is offline
Member
 
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"))?

Code:
import viz
import viztask
import oculus

viz.go()

questions = ["Q1:", "Q2:", "Q3:"]
hmd = oculus.Rift()
viz.link(hmd.getSensor(), 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
            info_panel.remove()
        
viztask.schedule(test())
Q2: Are there any ways to set visibility to be ON/OFF for the "addMessagePanel"?



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

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

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

Makiko
Reply With Quote
Reply

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 02:47 PM.


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