Skip to content

Commit

Permalink
fix a bug in the docs for using schema downgrading (#1641)
Browse files Browse the repository at this point in the history
* fix a bug in the docs for using schema downgrading
* Update docs/tutorials/versioning-schemas.md

Co-authored-by: Jean-Christophe Morin <[email protected]>
Signed-off-by: Stephan Steinbach <[email protected]>
  • Loading branch information
ssteinbach and JeanChristopheMorinPerso authored Jul 22, 2023
1 parent e8b6eac commit eaf8569
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion docs/tutorials/versioning-schemas.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,26 @@ For example:
To fetch the version maps and work with this, the python API provides some additional functions:

```python
# example using a built in family
downgrade_manifest = otio.versioning.fetch_map("OTIO_CORE", "0.15.0")
otio.adapters.write_to_file(
sc,
"/path/to/file.otio",
target_schema_versions=downgrade_manifest
)

# using a custom family defined in a plugin manifest json file
downgrade_manifest = otio.versioning.fetch_map("MYFAMILY", "June2022")
otio.adapters.write_to_file(
sc,
"/path/to/file.otio",
downgrade_manifest
target_schema_versions=downgrade_manifest
)

```

To fetch the version sets defined by the core from python, use the `OTIO_CORE` family of version sets.

See the [versioning module](../api/python/opentimelineio.versioning.rst) for more information on accessing these.

## Downgrading at Runtime
Expand Down

0 comments on commit eaf8569

Please sign in to comment.