WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 05-13-2010, 10:27 PM
Darkmax Darkmax is offline
Member
 
Join Date: Feb 2010
Posts: 108
change a model between scenes?

i tried to change a 2d cursor or a 3d model between scene 1 to scene 2 but i can't find the solution.

I know that you can specify the scene when you load the model or make a copy/clone/duplicate to another scene,but i want to change the object to another scene once the model is loaded,is possible this?
Reply With Quote
  #2  
Old 05-14-2010, 11:09 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,471
You can use the <node3D>.parent command to do this:
Code:
import viz
viz.go()

gallery = viz.add('gallery.ive')
court = viz.add('court.ive',scene=2)

avatar = viz.add('vcc_male.cfg',pos=[0,0,2],euler = [180,0,0])
avatar.state(1)

#switch between scenes 1 and 2
vizact.onkeydown('1',viz.scene,1)
vizact.onkeydown('2',viz.scene,2)

#move the avatar to scene 2
vizact.onkeydown(' ',avatar.parent,viz.WORLD,scene=2)
Reply With Quote
  #3  
Old 05-25-2010, 04:14 PM
Darkmax Darkmax is offline
Member
 
Join Date: Feb 2010
Posts: 108
Thanks Jeff, this will make more efficient my applications.
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
Change Viewpoint in different scenes lilio Vizard 1 08-28-2009 03:56 PM
Change model alpha and memory leak hosier Vizard 2 06-25-2009 11:55 AM
Importing a 3d human model and getting it to interact. yak Vizard 3 06-01-2009 03:19 PM
Randomly and Continuously Change Avatar's Face Texture Karla Vizard 4 08-22-2008 01:14 PM
Model sizes Pastscapian Vizard 15 10-07-2006 03:48 PM


All times are GMT -7. The time now is 03:46 AM.


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