Search code examples
windowsmacrosimagejsynchronize

ImageJ Synchronize Windows


I was wondering if it was possible to set the parameters of Synchronize Windows from a macro in ImageJ.

// This will open the Synchronize Windows Function
run("Synchronize Windows");

My best guess:

run("Synchronize Windows", "select=&Image1 Cursor Scaling z-Slices");

Thanking you in advance


Solution

  • Nope, the Synchronize Windows command is not macro recordable. You can see this by inspecting the source code:

    • It does not use GenericDialog
    • It does not pass any information to the Recorder
    • It does not provide any public static methods for use with call

    So as far as I can tell, there is really no way to do what you want from a macro.