Changing a layer’s ID

Each layer in a document can have a unique ID, which is used to refer to the layer in a script. Namo WebEditor automatically generates unique IDs for layers when you create them: layer1, layer2, and so forth. You can change the ID of a layer, for example to give it an ID that better describes its function. An ID must begin with a letter and may contain letters, digits, hyphens, underscores, colons, and periods.

To rename a layer
  1. Double-click the layer’s outline or layer markA small icon, visible only in Edit mode, that marks the location of a layer tag in the document. to select it.
  2. On the Layer Properties dialog box, type a new ID in the ID box.
Related topics

Adding JavaScript effects

Changing a layer’s ID