
Optional parameters are displayed with their default value in the function signature in this documentation.Īll mandatory parameters must be passed as positional arguments, i.e. In VRED API V2, only optional parameters can be passed as keyword arguments (named arguments) in a function call.


For example: camNode = vrCameraService.createCamera("new camera") Loading and saving files: vrFileIOServiceĬall service functions through an object that has the same name as the service class.Virtual Reality: vrDeviceService, vrImmersiveInteractionService, vrImmersiveUiService, vrHMDService.Cluster: vrClusterService, vrClusterManagerService.Use services to find existing scene objects, create new objects, delete objects, or access other functions that are available in the related VRED modules. While the objects have many functions to query and change properties, the main entry point is through the services to get the objects you want to work with. Class names for these objects start with vrd (e.g.

Scene objects in the new interface are derived from vrdObject. Those types are imported automatically into the python namespace and can be used without the need to import them from the PySide2 module.Īdditional Qt classes can be imported like this: from PySide2.QtCore import QLine Some functions of the new interface use Qt types for parameters or as return type. View VRED Python API v1 documentation here. This is the documentation for the new VRED Python API v2 based on Qt for Python (formerly known as PySide 2).
