Apply Script to All Planes

Category: 3D Images
Author:
Description: The script applies any stored DM-script to all planes of a 3D image. Each planes becomes the "front image" and then the script is started. Alternatively, the same DM-Menu-Command is applied to all planes, each being the "front image" once.
Comments: This script is also a nice demonstration on how to work with the DM-menubar "object". The script automatically builts a drop-down dialog with all available menu-commands. There is a similar script called Apply Script to All Open.
Update text: Fixed missing b_NrString bug. (Thanks to Alan Maigne for reporting it.)
Script version: 2014-02-07
DM/GMS version: 3.10.01
Script written as a function: No
Source: Show code
Download Source Code: Download