WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 07-09-2014, 07:19 PM
deborah deborah is offline
Member
 
Join Date: Nov 2011
Posts: 3
Hi farshizzo,

I was able to copy your code to produce two different scenes that share the data, but cannot not use viz.add for anything other than text. For example, if I try:

#Add ball to scene 2 screen
ball = viz.add('white_ball.wrl',parent=viz.SCREEN,scene=2 )

the ball does not appear in the window. How can I add different types of nodes?
Reply With Quote
  #2  
Old 07-14-2014, 04:07 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
Try scaling the ball by a large value such as 1000. You can also add it to the ortho layer:

Code:
ball = viz.add('white_ball.wrl',parent=viz.ORTHO, scene=2)
ball.setPosition([300,300,1])
ball.setScale([100]*3)
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


All times are GMT -7. The time now is 12:53 PM.


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