<dl>
<dt><b>Command:</b> <dd>Scale to
<dt><b>Menu:</b> to
<dt><b>PDB Name:</b>
<dt><b>Download:</b> (after the page appears, click on the "Download"
<dt><b>License:</b>

<dt><b>Description:</b> <dd>This script will scale the current layer so that it fits within the boundaries of the selection. If there is no selection when the script is run, the layer is scaled to the image size.


Note: this script uses the selection in a somewhat unconventional manner. Whereas selections are usually employed to delineate affected regions of the image, this script uses it to specify the target size of the layer.

Note: a version of this script which preserves the aspect ratio of the original layer also
</dl>