The current setup works like this:
- On export, go through a dictionary of controls inside the GUI and check the settings.
- Store each object name and it's setting as a text block with easily splittable characters. For this I chose to use ~ and | as neither of these are used for windows file or directory names.
- Write this text block to the PSD metadata.
- Meanwhile, in the export, use the GUI's current settings to determine output locations, formats and files to include.
To reload the settings:
- A background thread is constantly listening for any changes in the current active Photoshop document.
- If the name of the document changes, it automatically kicks off a function that reads the metadata out of the active PSD and splits it into objectName, setting value pairs.
- If no data is found, it kicks off a process to apply default settings.
- This data is passed to another function that finds these QT objects, and applies the relevant setting recast as the applicable object type- eg bool, int, string.
- These settings are only saved when the document is exported. I'm expecting a little grief from the artists about this if they switch documents before exporting them at least once, so I might try to fix it.
The Stored Metadata, ready to be read back by the tool. |
Main settings to be saved are the different maps and resolutions associated with the various LODs, although settings for format and destination folders are saved as well. |
No comments:
Post a Comment
Comments?