Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel

addLayerPassword(pwd)

Description

Function which that gives access to protected layers. By default, protected layers cannot be accessed by the script. Any elements and parameters inside protected layers are hidden for the scriptscripts. The parameters of a protected layer and any elements inside of it are hidden for scripts. This prevents someone unauthorized from parsing the Program Tree to retrieve hidden information. By calling this function with the correct password, the calling script can access a protected layer and the elements and parameters of it.the corresponding protected layers again.

Info

To hide the password in addLayerPassword, you must also protect the script module. See Managing Script Modules for details.

Available in: Controller.

Arguments

pwdThe password of the protected layer(s).string

Example

Code Block
-- access the protected layer(s) withwhich have the password "abc123"
addLayerPassword("abc123")
Panel

See Also: Protecting Layers