Vizard 7 » Command Index » Vizard objects » node3d » <node3d>.copy
7.6

<node3d>.copy

This action will copy a geometry object

<node3d>.copy(  
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 copy of the geometry object. Changing the appearance of this object will NOT affect other copies or the original.

Return Value

<node3d> Object

Example

ball = viz.add('ball.wrl')
ball2 = ball.copy()
ball2.color(1,0,0) # Only the second ball will be red

See also

<node3d>.clone
<node3d>.addParent