-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[api][feature][file] Add ID & Save preset as remix
The idea is to highlight AVS's remix culture by creating metadata to both machine-readably identify presets globally, as well as keep track of any presets the current preset was based on. This could, in the future, enable a database of presets to trace inheritance connections among other things. To that end: - Add an "ID" parameter to the Root config that gets randomly assigned a UUID on first creation of a new preset. The ID does not change when the preset is saved, it's more of a "project id". - Add a "Based On" list parameter to the Root config that can record previous presets with ID, date, name and authors. - Add a `remix()` method to the Root effect, which switches some metadata and assigns a new ID and initial date. - Add an `as_remix` parameter to both `avs_preset_set()` and `avs_preset_save()` API functions. Setting this flag invokes the `remix()` method on the current Root before saving. While not strictly related, also in this commit: - Split the Root config's "Date" field into initial date and last- edited date, to reflect both start of the preset and most recent version. - When creating a new preset give it a semi-random name of the format "Untitled Preset xxxxxxxxxx", where xx..xx is a 10-digit random alphanumeric suffix.
- Loading branch information
1 parent
47e43fd
commit 1455a0d
Showing
5 changed files
with
91 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters