WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 07-15-2014, 05:12 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Vizconfig panels support text boxes that filter for float or int values. Would this work for you?

Code:
''' 
Press F12 to toggle the visibility
of the configuration window 
''' 

import viz
import vizconfig
import vizinfo

viz.setMultiSample(4)
viz.fov(60)
viz.go()

vizinfo.InfoPanel()

gallery = viz.add('gallery.osgb')

value = 25.0

def getValue():
	return value
	
def setValue(v):
	value=v
	
#Create a configurable object
bc= vizconfig.BasicConfigurable('Enter a float value between (-50,50)')
bc.addFloatItem('float value',range=(-50,50),fset=setValue,fget=getValue)

#register the object so it will display in the configuration window
vizconfig.register(bc)
Reply With Quote
 

Tags
gridpanel, menu, panel, tabpanel, tickerdialog

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
artoolkit no webcam showing vrmdl Vizard 3 03-10-2014 11:01 AM
Showing another program in a virtual world Frank Verberne Vizard 3 01-16-2013 10:26 AM
Models showing up Elizabeth S Vizard 9 09-06-2006 06:11 PM
V8 HMD showing snow pattern bailenson Vizard 3 06-22-2006 10:00 AM
running scripts without the IDE showing hotspur1 Vizard 7 10-30-2003 10:36 AM


All times are GMT -7. The time now is 01:47 AM.


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