using ID to save individual panels in bundle

Useful hints
Post Reply
User avatar
joleenf
Posts: 1120
Joined: Mon Jan 19, 2009 7:16 pm

using ID to save individual panels in bundle

Post by joleenf »

When a bundle is saved with more than one window or panel, it can be difficult to save the individual images. However, if a layer ID is added, the display can be accessed and saved.

1.) Add a Layer ID to the layer
a.) In Layer Controls, select Edit>Properties

Screen Shot 2012-03-16 at 1.56.01 PM.png


b.) Add an ID (e.g. "deltaImager")

Screen Shot 2012-03-16 at 1.56.08 PM.png


c.) Click OK.

From a script, load the bundle

Code: Select all

loadBundle([i]<path/bundlename>[/i])


Get the control for the layer

Code: Select all

layerControl=findDisplayControl("deltaImager")


Save the layer (Note: This will save all layers that are displayed in that same panel)

Code: Select all

layerControl.saveImage(<path/filename>)


If the layer names are numbered, it could be easier placed in a loop.

Joleen
Post Reply