Open topic with navigation
<node3d>.clone
This action will clone a geometry object
| <node3d>.clone( |
|
| parent = WORLD |
| scene = viz.MainScene |
| ) |
|
parent = WORLD
The parent of the geometry object. Possible values: WORLD (default), HEAD, SCREEN, or another geometry object.
scene = viz.MainScene
The scene number to add the geometry object in.
Remarks
This action will return a cloned copy of the geometry object. Changing the appearance of this object will affect all other clones and the original.
Return Value
<node3d> Object
Example
ball = viz.add('ball.wrl')
ball2 = ball.clone()
ball2.color(1,0,0) # both balls will be red now.
See also