id

A unique and persistent identification number used internally to identify an item between sessions. The value of the ID remains the same when the project is

effectsActive

True if the layer’s effects are active, as indicated by the icon next to it in the user interface.Boolean; read/write.

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

close()

Closes the project with the option of saving changes automatically, prompting the user to save changes or closing without saving changes.closeOptions Action