register_post_load_file_format_upgrade_callback
- omni.graph.core.register_post_load_file_format_upgrade_callback(callback: object) int
Registers a callback to be invoked when the file format version changes. Happens after the file has already been parsed and stage attached to. The callback takes 3 parameters: the old file format version, the new file format version, and the affected graph object.
- Parameters
callback (callable) – The callback function
- Returns
A handle that could be used for deregistration. Note the calling module is responsible for deregistration of the callback in all circumstances, including where the extension is hot-reloaded.
- Return type
int