instantreality forum
news: Welcome to the instantreality forums!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
January 17, 2018, 08:24:16 am


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: create instances via script  (Read 2067 times)
settgast
Newbie
*
Posts: 19


View Profile
« on: August 11, 2011, 08:54:29 am »

Hi,

using the dynamic boxes tutorial I would like to create instances (like cloneTree in OSG) via script. I see that it is possible to create new nodes with Browser.currentScene.createNode, but I want to copy an existing subtree.

Cheers,
Volker
Logged
jbehr
Administrator
Full Member
*****
Posts: 155


View Profile
« Reply #1 on: August 12, 2011, 07:05:31 am »

Hi,

there is no explicit deep copy on the javascript layer.
But can design your sub-tree as proto and the system
will do a deep copy every time you instantiate a node.

best regards
johannes
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.15 | SMF © 2011, Simple Machines