WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 09-19-2014, 04:20 AM
Erikvdb Erikvdb is offline
Member
 
Join Date: May 2013
Posts: 63
Coincidentally I just started working on a multi-scene project as well, and I was wondering the same thing. You can use <node3d>.copy or <node3d>.clone to duplicate your objects to different scenes, but it's a pain in the ass to set all positions and orientations for every object in every scene independently.
Of course you could make a function like:
Code:
def cloneToScene2():
	objects = viz.Scene1.getChildren()
	for object in objects:
		object2 = object.clone(scene=2)
		object2.setPosition(object.getPosition())
		object2.setEuler(object.getEuler())
.. but it's not a very pretty solution imo, so if there's a better/faster built-in way to do this, I'd like to know about that as well.

In my case I only have to view one scene at the time, so I just move objects from scene to scene
Code:
def changeScene(scene):
	for object in objects_to_move:
		object.setParent(viz.WORLD, scene)
Also very helpful for viewing the proximity manager debug nodes at all times, because for some reason they only render in the main scene by default.
Reply With Quote
 

Tags
duplicate scene, eye tracker, eyetracker, hmd


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
How to display Chinese characters in info? KellySu Vizard 1 04-24-2012 07:56 AM


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


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