How can a script, a template, and a data file be connected?

I am currently evaluating whether 010 is suitable for analyzing some issues with binary files, and I am impressed by all the features available for file and process analysis.

I created a template that worked well with a data file, and a simple script also functioned correctly. However, when I reloaded the files the next day, it appeared that there was no connection between the script and the template, as I received an error message regarding undefined variables.

To resolve this, I created a new project and added the three files, which worked successfully. Unfortunately, the next day, the same problem reoccurred with the undefined variables. The context menus for these files sometimes included options to choose which template or script to run on the data file, but not when this error message came up. The connection between the template and the script was still lost.

I have read some similar topics here, but could not find a solution for my problem. I must have overlooked or misinterpreted something. I would appreciate any guidance or hints on this issue.

Each data file can be connected to one template and one script. If you select the data file and click the ‘Run Template’ icon in the Tool Bar, a drop down list of files will appear and the currently connected template will be highlighted. Likewise, if you click the ‘Run Script’ icon in the Tool Bar, you should see a list and the connected script is highlighted. You have to run the template first, and then when you run the script the script can automatically access any variables that were created in the template.

When 010 Editor is shut down and restarted, the template and script connections should remain, but the template is not automatically run unless the template is installed on the ‘Templates’ menu (we should probably have a setting giving more control of when the templates are run). If you restart 010 Editor, you should run the template first (F5) and then run the script (F7). If you run the script first, it would complain the template variables don’t exist and I’m guessing that is what you are seeing. If shouldn’t matter if the files are placed in a project or not.

If you are seeing behaviour that is different that what is described here, please let us know steps to get the problem you are seeing. Thanks!

Graeme
SweetScape Software