Loading config JSON files
The first step to begin with when using the Executor SDK is to load the Bifrost resources you may need (the types, nodes, and compounds). Loading resources is done using the Workspace's loadConfigFiles()
method. You need to specify the absolute path to each Bifrost config JSON file to be loaded. Many standard Bifrost config JSON files are shipped with Bifrost and are located in the resources
and packs
sub-folders of your Bifrost installation folder. For example, the files:
`<BIFROST_LOCATION>/resources/standalone_config.json`,
`<BIFROST_LOCATION>/packs/packs_standalone_config.json`
refer to all standard Bifrost resources that you may need when using Bifrost in a standalone application (e.g. outside of Maya).
Depending on the graph that you want to execute, you may not need to always load all available Bifrost resources, and loading only the resources you actually need could reduce this loading time.
If you have created custom Bifrost resources, like your own types, nodes or compounds, then you need to create config JSON file(s) for them and also load these config files using the loadConfigFiles()
method.
The Workspace's loadConfigFiles()
method also allows you to disable and skip loading some specific libraries/packs by listing them by their library names (as specified on the "libraryName"
field of each config file) and pass this list in the disabledPacks
argument of that method.
More information is provided on the content of config files in Bifrost config JSON files.