<< Click to Display Table of Contents >> Navigation: User Interface > Copy and Paste |
Tutorial video about copy & paste
When using Copy & Paste, the pasted object will be put on the scene with an offset of 10 px to the right and bottom if the object is put on the same parent object (e.g. on the same frame). When pasting on a different parent object, the position will be the same as with the original object.
There are three types of copy & paste in the program: Normal, reference and shallow.
Objects can be copied and pasted by either right-clicking on the selected object(s) and selecting "Copy" and then right-click in the target parent object and select "Paste", or by pressing CTRL+C with the object(s) selected and pressing CTRL+V. This works multiple times which creates multiple copies of the same source object.
Please note: Pressing CTRL+C and then directly CTRL+V will not do anything for a copy between pages and when copying multiple objects at once. In this case the parent object has to be selected prior to pasting.
Please note: Direct copy & paste does NOT work for the objects Container and List, and also both object types cannot be pasted into each other, i.e. a list cannot be pasted into a list. Usually doing that will result in bad design, but if there is a good usecase for it, the user can paste on the parent object and move the list into the other list in the project tree. |
In addition to the normal paste there is also a reference paste. The difference is that with the normal paste, a new object will be created, with a new ID, its own set of properties, events etc. With reference paste, a carbon copy of the source object is created. The new object has the same ID as the source object and is identical in any way. Any change to one of the objects will reflect in the other, as well, with the exception of the position of the objects in their parent object. |
The last type of paste is called shallow paste. It only makes sense for objects that have child objects. The copied parent object will be a normal copy, whereas the child objects will be reference copies. This type of paste is useful e.g. for list objects with a set of images, like a set of warning / error icons. The list object will be a normal copy, so the copied one can show a different image than the source, but the images in the list should be identical for both lists. If shallow paste is used with an object without children, the result will be a normal copy of the object. |