Manipulating Gizmo Window Recreation Macros

I have Igor 6.2. I created a Gizmo window showing an image in the Z=0 plane and a movable spectroscopy slice in the vertical. Now I have to do the same thing for a bunch of others. It seems like the command line can't do everything in Gizmo like select all the various options in the slicer dialogues (and if I'm wrong please correct me since it will make the following moot; I can just put all the commands in the Igor Text File.) I noticed that despite this, Igor can create Gizmo window recreation macros that reproduce everything faithfully but there's doesn't seem to be a way to access the recreation macros for Gizmo. I saved an unpacked copy of the file to see if I could find it there but no such luck. If I could have access to this I'd just need to change the name of two waves and I'd be good.

Is this possible?
I am not sure what specific problem you encountered so let me explain how this works.

The "slicer" is implemented by an IGOR procedure that is part of the Gizmo Procedures package. You can find the code in WaveMetrics Procedures:Gizmo Procedures:GizmoSlicer.ipf. The procedure builds the panel and provides the interface that generates the necessary commands to affect the display in Gizmo.

If you need to automate the display of slices from multiple sets of data I'd generate one gizmo display of the slices in a configuration you want and save that recreation macro (DoWindow/R). Then kill the slicer panel and associated procedure file(s) and clean up the recreation macro to make it into a user function that accepts an input wave with other parameters as needed. The "clean up" of the macro will involve converting statements like:

ModifyGizmo ModifyObject=Surface1 property={ plane,17}

to something that can be compiled in a function e.g.,

Variable planeNumber=17 // this could be a variable input
String cmd
sprintf cmd,"ModifyGizmo ModifyObject=Surface1 property={ plane,%d}",planeNumber
Execute cmd

You can see other examples of this in the various functions in the file GizmoSlicer.ipf.

If you have any questions about this feel free to send them to support@wavemetrics.com. It may also be helpful to have a copy of the experiment in question.

A.G.
WaveMetrics, Inc.

Quote:
I noticed that despite this, Igor can create Gizmo window recreation macros that reproduce everything faithfully but there's doesn't seem to be a way to access the recreation macros for Gizmo. I saved an unpacked copy of the file to see if I could find it there but no such luck. If I could have access to this I'd just need to change the name of two waves and I'd be good.


Igor will create a Gizmo recreation macro if you click the Gizmo window close box. You can then find the macro in the built-in procedure window. You can also generate a recreation macro by choosing Windows->Control->Window Control and clicking the Create Window Macro checkbox or by executing:
DoWindow/R Gizmo0  // or whatever your Gizmo window name is


When you save an experiment, Igor creates a window recreation macros and saves it in the experiment file. This is the .uxp file for an unpacked experiment. Open that as a notebook to see the recreation macro. But you don't need to do that as you can use the techniques in the previous paragraph.
Thanks for the help. I found the recreation macro in the procedure window and I'll see if I can do something with it.