VR Exchange

VR Exchange API functions.

This API is used to directly interact with other installed importer and exporter plugins.

Functions


uint32_t VRXExport(const char * file,
HNode scenes,
HNode libs,
const char * exporterName
)

Saves the specified scenes and libraries nodes to the specified file.

Parameters
file

The file to export to

scenes

The root node containing assemblies (e.g. scenes root)

libs

The root node containing library assets (e.g. libraries root)

exporterName

Hint to specify the name of the exporter plugin to use. If not specified (null), attempts to determine a suitable exporter using the file parameter's file extension

Returns

1 if the export is successful, otherwise 0


Gets the VRExchange API Major version.

This version represents backward compatibility. It should be checked when loading the library, against an expected value. If it is not what is expected, the API may not function according to the expectations of the program using it.

Returns

major version


Gets the VRExchange API Minor version.

This version number represents additions to the API and does not affect backward compatibility.

Returns

minor version


uint32_t VRXImport(const char * file,
HNode scenes,
HNode libs,
const char * importerName
)

Imports the specified file onto the specified scenes and libraries nodes.

Parameters
file

The file to import

scenes

The root node to create assemblies on (e.g. scenes root)

libs

The root node to create library assets on (e.g. libraries root)

importerName

Hint to specify the name of the importer plugin to use. If not specified (null), attempts to determine a suitable importer using the file parameter's file extension

Returns

1 if the import is successful, otherwise 0


uint32_t VRXImportAndMerge(const char * file,
HNode scenes,
HNode libs,
HNode mergeOptions,
const char * importerName
)

Imports and merges the specified file onto the specified scenes and libraries nodes utilising the merge options to append the import data.

Parameters
file

The file to import

scenes

The root node to create assemblies on (e.g. scenes root)

libs

The root node to create library assets on (e.g. libraries root)

mergeOptions

If this node is set then the import merges results to existing nodes. This node contains the merge settings. If not specified (null), then imports as normal

importerName

Hint to specify the name of the importer plugin to use. If not specified (null), attempts to determine a suitable importer using the file parameter's file extension

Returns

1 if the import is successful, otherwise 0

No Results.

Getting StartedArchitectureBest PracticesHow ToAdvanced TopicsChangelogvrtreevrtree_cppvtCoreCoreForeign Function InterfaceMetanodesMigrationsObserversPropertiesSettingsTreeUtilitiesAPI DefinitionsVR ExchangePluginsLua API