Setting the Active Document

To set the active document, you need to create a variable object to hold the main picture name, or picture alias. In the code that follows, a variable object is used because the script requires multiple main pictures to be opened.

If you use an alias instead of a variable, an error would occur if the alias was set to the same name ("MainPicture"), when more than one main picture is opened at the same time. See the Creating Pictures manual for more information on aliases.