duplicate()

Duplicates the layer. Creates a new Layer object in which all values are the same as in this one. This has the same effect as selecting a layer in the user

selection

All items selected in the Project panel, in the sort order shown in the Project panel.Array of Item objects; read-only.