WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-13-2009, 10:09 AM
Chrissy2009 Chrissy2009 is offline
Member
 
Join Date: May 2009
Posts: 33
Create Button or Text

Hello,

I want to create buttons and text in my different scenes.

Therefore I want to use the GUI of Vizard. So I right-click on the window 'resources' and choose 'Add Button'. Afterthat I enter a name and click ok.

Now the Button is created and I can use it in my Button_Event. That works fine.

But is it possible to define the scene of the button. Or if I create an text, the same way. How can I define the scene, where the button or text will be placed??

If I create the button or text directly in the code like
Code:
myButton = viz.add(viz.BUTTON)
then I can define the scene.

But is it also possible to define the scene over the gui?
Reply With Quote
  #2  
Old 07-15-2009, 05:34 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
No you cannot define the scene within the GUI. However, you can reparent the node to a different scene within your script. Example code:
Code:
node.parent(viz.SCREEN,viz.Scene2)
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
Vizard tech tip: Text to Speech Jeff Vizard 1 01-15-2009 09:39 PM
text output jaclyn.bill Vizard 2 10-24-2007 06:37 AM
button problems cade_mccall Vizard 3 02-22-2007 09:48 AM
adding 2D text via script V.shazzle Vizard 3 09-19-2005 02:45 PM
3d Text with Transparent Borders vjosh Vizard 3 12-01-2004 10:50 AM


All times are GMT -7. The time now is 03:30 PM.


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