Share views in script

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

Share views in script

Post by joleenf »

I have recently been using scripts to view multiple bands of the same images. It is useful to display the various bands in different displays. It is helpful to set a sharing group so that the displays share views when zooming or panning the image. This can also be done from the script:

panel1=buildWindow()[0]
panel2=buildWindow()[0]
panel1.setShareGroup('group 1')
panel2.setShareGroup('group 1')
panel1.setShareViews(1)

Thanks,
Joleen
Post Reply