MGED CMD cp
[edit] Syntax
- cp from_object to_object
[edit] Argument(s)
- from_object
- Source db object
- to_object
- New db object
[edit] Return Value(s)
- No Return Values for this command.
[edit] Description
The "cp" command makes a duplicate of an object (shape or combination). If from_object is a shape, then it is simply copied to a new shape named to_object. If from_object is a combination, then a new combination is created that contains exactly the same members, transformation matrices, etc, and it is named to_object.
[edit] Example(s)
- mged> cp prim1 prim2
- Make a duplicate of combination prim1 and call it prim.
- mged> cp comb1 comb2
- Make a duplicate of combination comb1 and call it comb2. Note that this action does not duplicate the members of comb1, just comb1 itself.
[edit] See Also
- cpi
- push
- xpush
Page Generated by David Loman on: 10/11/2007 at: 12:09:35 PM