8.3 Work with Global State Files

The current Global State can be saved to a file, and subsequently loaded to restore a previous Global State. This can be useful when calling NDICmd from a script, or otherwise using the program for automation.

  1. Make changes to the Global State and then save them to a file. The following command is an example of this scenario.

    ndicmd SetGS DefaultEnvironment.RootDir c:\myRoot THEN SaveGS myGS.json
  2. After saving a Global State file, load the file with the LoadGS command and perform an operation. The following command loads the Global State file and then echoes the Global State.

    ndicmd LoadGS myGS.json THEN EchoGS

 


CONFIDENTIAL