Saving settings to a text file and restoring them. (Composition by usefuldesign.au)

Author: usefuldesign.au
License: Creative Commons Attribution-NonCommercial
Date: 2011.07.26
Compatibility: 10.5, 10.6
Categories:
Required plugins:
Kineme File Tools

This composition shows one way to save and restore a few numeric input values for a Cube Renderer Patch.

It has published boolean inputs in lieu of command buttons and you can toggle them either way to trigger a pulse to execute that command.

It has primitive error handling on the file loading, just checking for all 6 inputs as non-zero values. You can check the error handling by 1. opening the text file ("my_crazy_cube_settings.txt" gets saved in same folder as composition) 2. deleting some values and save 3. attempting to reload the file by toggling the Restore File input.

Hope you have the AGBook-Stencil font or the screen text will no doubt default to something ugly ;-)

N.B. If you want to use my settings file (you can easily write you own by triggering a Write File event) download it here

sinsynplus's picture
Re: Saving settings to a text file and restoring them. ...

had some patches not restoring.. Do I miss something important? actually i had been able to write a .txt and it seems to read but gives out error when attempting to read..