WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 06-22-2003, 01:51 PM
jkelly jkelly is offline
Member
 
Join Date: Jun 2003
Posts: 7
html

i can't find the command to present html in vizard, can you help?

thanks.
Reply With Quote
  #2  
Old 06-22-2003, 03:44 PM
mspusch mspusch is offline
WorldViz Team Member
 
Join Date: Feb 2003
Posts: 223
HTML support is a recently added feature and will soon be documented better.

import viz
viz.go()
viz.displayHTML('vizhelp.html')

will display the file 'vizhelp.html' located in the same directory (see HTML.zip in attached zip folder).

Currently the F1 key triggers the loading of an HTML page called vizhelp.html which must be located in the directory where the Vizard script is executed. The demo pack http://www.worldviz.com/products/vizard/index.html uses this feature for documentation and F1 brings up an explanation for every demo. We'll soon post a more detailed description of the HTML features.

At VSS we have used the Vizard HTML and Vizard TCP/IP networking features to use a Laptop for showing HTML help pages. The Laptop was connected over a standard wireless card. This way it is possible to easily connect and coordinate different computers.

I'll attach the files we used for doing this. In the demo file (I attached the demo 'Structure from motion' as an example), the lines

import Watcher
watch = Watcher.Watch(8)

were used to load the program watcher and pass on the demo number. Watcher was then generating and sending the message that triggers other computers on the network which are running the Vizard program demo_watcher.py to show the right HTML help file.

Check it out!

Matthias
Attached Files
File Type: zip viz_html.zip (957.8 KB, 2709 views)
Reply With Quote
  #3  
Old 06-23-2003, 12:53 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Here's a quick command reference for displaying html files:

viz.displayHTML(filename) will display the specified html file
viz.hideHTML() will hide the html window

The F1 key will toggle displaying 'vizhelp.html' in the script directory. The idea behind this is that you can put a file 'vizhelp.html' in the directory of any script and the user can press F1 to display information about the current program.

-- Farshid
Reply With Quote
Reply


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


All times are GMT -7. The time now is 12:25 AM.


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