What's New in Python API V1 and V2
Find what was added and changed in the VRED Python API v2 for each release.
For information on the Python Sandbox and other security information, see Software Security.
What's New in API v1 and v2 2025.3
Python Examples
Added the following Python examnples:
Under Physics Examples, we added Physics Save and Load Example, which demonstrates how collision data can be made persistent.
Under Snippets, we added these toolbar examples:
API V1
The following functions were removed from vrMovieExportModule:
getOptimizationModegetRenderingColorspacesetOptimizationModesetRenderingColorspace
The following functions were added to vrRenderSettings:
getOptimizationModegetRenderingColorspacesetOptimizationModesetRenderingColorspace
For vrSceneGraph, the parameter was changed for fixDepthOfField.
API V2
Added the following new classes in 2025.3:
- vrdGPUInfo
- vrdGradingLut
- vrdGradingPrimary
- vrdGradingRGBMCurve
- vrdGradingTone
Added the following new enum values:
vrCameraTypesCameraSensorResponse.OpenColorIOPasteOption.PasteGradingAttributes- new enum:
GradingLogSpace
Removed the DataTranslator enum from vrdAtfSettings and removed the getDataTranslator and setDataTranslator functions.
Added the following functions to vrdCameraBaseNode:
getGradingEnabledgetGradingLutgetGradingPresetFilenamegetGradingPresetFoldergetGradingPrimarygetGradingRGBCurvegetGradingToneisGradingPresetModifiedloadGradingPresetsaveGradingPresetsetGradingEnabled
Added the following functions to vrdTonemapper:
estimateWhitebalanceFromPixelgetHdrViewgetLookgetViewsetHdrViewsetLooksetView
Added the following functions to vrGUIService:
addMainWindowToolBarremoveMainWindowToolBar
For the following class, we changed the documentation:
vrNodeService
findNodes(names, wildcard, includeComponents, root, caseSensitive) → List[vrdNode]
vrDeviceService
addBlockedDeviceModelOrSerialgetBlockedDeviceModelsOrSerialsisBlockedDeviceModelOrSerialremoveBlockedDeviceModelOrSerialsetBlockedDeviceModelsOrSerialsdeviceCollisionStarteddeviceCollisionStoppeddeviceMoved
vrdProjectMergeSettings
getEnvironmentImportOptionsetEnvironmentImportOption
vrdVRDevice
disableRayenableRaygetSerialNumberpicksignalvibrate
vrMetadataService
getScenegraphTags
vrPhysicsService
clearCollisionDatahasCollisionData
Added the cleared signal to vrUndoService.
What's New in API v1 and v2 2025.2
Environment Variables
Added VRED_FORCE_HTTPS. When set to 1, it enables this option, redirecting incoming unencrypted (http) connection requests to encrypted (https) connection requests in the VRED web interface. Encrypted HTTPS Only is greyed out in the preferences and cannot to changed through the UI. When set to 0, it uses the Encrypted HTTPS Only preference option setting.
Python Examples
Added the following Python examnples:
- Under Other Script Plugins >
vrDragAndDropExample - Under Snippets >
vr_terminal
API V1
The following functions were added to these classes:
vrRenderSettingsgetOptimizationModesetOptimizationModegetRenderingColorspacesetRenderingColorspace
vrMovieExportgetOptimizationModesetOptimizationModegetRenderingColorspacesetRenderingColorspace
vrNodeUtilssetIsVRNode
vrRenderSettingsgetRaytracingPhotonUseAutomaticRadius
vrScenegraphfixDepthOfField
API V2
Added the following new classes in 2025.2:
vrMaterialEntryTypevrUserMimeTypes
Added the following functions to these classes in 2025.2:
vrAnnotationServicecreateAnnotationGroupdeleteAnnotationsduplicateAnnotations
vrdMaterialcompressTextures
vrdObjectSignalgetSignal
vrdOpenGLInfogetMax3DTextureSizegetMaxArrayTextureLayersgetMaxCubeMapTextureSizegetMaxTextureImageUnits
vrdTonemappergetAutoAdjustISOgetResponseCurvePowergetResponseCurveSaturationsetAutoAdjustISOsetResponseCurvePowersetResponseCurveSaturation
vrFileIOServiceenableNewFormatgetSceneImportSettingsFromPreferencessetKey
vrGPUServicegpuInfo
vrHMDServiceisMixedRealityDepthEstimationSupported
vrMaterialServicecompressTextures
vrMetadataServicegetMaterialTagsgetScenegraphTags
vrPhysicsServiceclearCollisionDatahasCollisionDatarestoreCollisionDatastoreCollisionData
Added the return types, CameraSensorResponse and AgX_Custom to vrCameraTypes.
For the following class, we added these new signals:
vrAnnotationServiceannotationGraphChanged
vrFileIOServiceprojectReadyToRender
For these classes, the following have changed:
vrAnnotationServicecreateAnnotation
vrdVRDevicegetSerialNumber
vrDeviceServicesetBlockedDeviceModelsOrSerialsgetBlockedDeviceModelsOrSerialsaddBlockedDeviceModelOrSerialremoveBlockedDeviceModelOrSerialisBlockedDeviceModelOrSerial
What's New in API v1 and v2 2025.1
Environment Variables
Changed the description for VRED_DISABLE_ADP.
Python Examples
Added a new Physics section with two examples and added a steering wheel example to the Constraints section.
API V1
Changes have been made to the following. Visit the Python API V1 section for specifics.
For vrAnimWidgets, the parameters and return value for addTranslationControlPoint have changed and addTranslationControlPoints (same) has changed.
For these classes, the following have changed:
vrCamerasetFogColorDistancesetFogColorHeightsetFogNoiseOffsetDistancesetFogNoiseOffsetHeightsetFogNoiseSizeDistancesetFogNoiseSizeHeightsetFogRangeHeight
vrConnector-setConnectorMousePoschangedvrInteractiongetUseBoundingboxesForInteractionInVRsetUseBoundingboxesForInteractionInVR.
vrMaterialPtr-setTextureTransformchangedvrNodeUtils-unshareCoreschangedvrOSGWidgetgetSuperSamplingsetSuperSamplingsetSuperSamplingOnCameraMovementsetSuperSamplingQualitygetSuperSamplingQuality
vrRenderSettings-setRenderVariantSetschangedvrScenegraph-cloneNodeschangedFor
vrSequencer, the following have changed:readSequenceXMLrunSequenceHttp
vrVariants-createAndCaptureVariantSetchangedvrVariantSetPtr-addClippingPlanechangedvrVredUi-getMainWindowchangedvrWebOverlay-setFramechanged
For vrMaterialEditor, the documenmtation for enableSubstancePresetCache has changed.
API V2
We added the following classes to the Python API V2:
vrdPhysicsConfigvrdPhysicsConvexConfigvrdPhysicsHullConfigvrdPhysicsInfovrdPhysicsTrianglesConfigvrPhysicsServicevrPhysicsTypesvrLogServicevrLogTypes
We added these functions to the following:
vrdFileExportSettingsgetKeepDefaultCamerasgetTextureCompressionModegetTextureCompressionQualitysetKeepDefaultCamerassetTextureCompressionModesetTextureCompressionQuality
vrdAtfSettingsModelStateenumgetModelStatesetModelState
vrdNodeaddedisSynchronizedWithvrdViewpointNodeaddedremovePreviewvrFileTypesaddedTextureCompressionModeenumvrImmersiveInteractionServicegetShowTrackedHandsInMRgetUseBoundingBoxCollisionObjectsisHandTrackingGestureEnabledsetHandTrackingGestureEnabledsetShowTrackedHandsInMRsetUseBoundingBoxCollisionObjects
For vrdSubstanceMaterial, we added an example to the class documentation.
We made these changes to the following functions:
vrdAtfSettingsgetUseLegacyLoader()setUseLegacyLoader().
vrdGeometryNodegetNormalsgetPositionsgetTexCoordssetNormalssetPositions
vrMaterialServicegetMaterialFromId
vrReferenceServicesetUpdateMonitoringInterval
We removed getSRgbMidColorPosition and setSRgbMidColorPosition from
vrdLinearGradientStop.
Some classes in the following have been changed to enum values. Visit the Python API V2 section for specifics.
vrAnnotationTypes.ScalingModevrBakeTypes.AmbientOcclusionWeightvrBakeTypes.BakeStatevrBakeTypes.BakeTypevrBakeTypes.DenoiserTypevrBakeTypes.DirectIlluminationModevrBakeTypes.IlluminationQualityvrBakeTypes.RenderervrBakeTypes.SubdivisionQualityvrBakeTypes.UVGenerationvrCADFileTypes.FileTypevrCADFileTypes.JobStatevrCameraTypes.BlendModevrCameraTypes.CameraAxisvrCameraTypes.CameraCandelaMappingvrCameraTypes.CameraColorspacevrCameraTypes.CameraConstraintvrCameraTypes.CameraEyevrCameraTypes.CameraProjectionModevrCameraTypes.CameraResponseCurveModevrCameraTypes.CameraSensorResponsevrCameraTypes.CameraSensorResponseCurveMappingvrCameraTypes.CameraSpacevrCameraTypes.CameraStereoLayoutvrCameraTypes.CameraTonemappervrCameraTypes.CameraTrackTypevrCameraTypes.CollisionStructureBuildMethodvrCameraTypes.DepthOfFieldModevrCameraTypes.FogFalloffModevrCameraTypes.FovModevrCameraTypes.InteractiveDofQualityvrCameraTypes.PasteOptionvrCameraTypes.TurntableDirectionvrCameraTypes.VanishingLinesTypevrCameraTypes.ViewpointCreationModevrClusterTypes.JobTypevrFileTypes.FileExtensionFilterModevrFileTypes.TextureCompressionModevrGPUTypes.OpenGLFeaturevrGPUTypes.OpenGLVendorvrGUIService.DialogTypevrGUIService.ViewCubePositionvrGUIService.ViewCubeSizevrGeometryTypes.DecoreModevrGeometryTypes.DecoreSubObjectModevrGeometryTypes.DecoreTransparentObjectModevrGeometryTypes.PrimitiveTypevrGeometryTypes.VisibilityMergeModevrHandTypes.FingerTypevrHandTypes.HandRolevrHandTypes.HandTrackingGesturevrHandTypes.HandTrackingTypevrImageTypes.LoadOptionsBitmaskvrImageTypes.LoadTypevrImageTypes.ShareModevrImmersiveInteractionTypes.ControlModevrImmersiveInteractionTypes.TeleportGroundModevrKernelServices.RelativeOperatorvrKernelServices.vrMaterialEntryTypevrLensFlareTypes.ElementShapevrLensFlareTypes.ElementTypevrLensFlareTypes.PresetTypevrLensFlareTypes.StarShapevrLightTypes.AttenuationvrLightTypes.LightTypevrLightTypes.UnitvrLightTypes.VolumeIlluminationModevrLogTypes.LevelvrLogTypes.LogTypevrMainWindow.DockOptionvrMainWindow.PaintDeviceMetricvrMainWindow.RenderFlagvrMaterialEntryTypevrMaterialTypes.MaterialTypevrMaterialTypes.MergeOptionsvrMetadataTypes.ChangeFlagvrMetadataTypes.MatrixOrdervrMetadataTypes.ObjectTypevrMetadataTypes.ValueTypevrNodeService.TraverseChoicevrPhysicsTypes.AxisvrPhysicsTypes.ObjectTypevrProductTypes.TypevrReferenceTypes.ExportLocationvrReferenceTypes.FileStatevrReferenceTypes.LoadModevrReferenceTypes.NotificationModevrReferenceTypes.StatevrReferenceTypes.TypevrRenderTypes.FoveatedQualityPresetvrRenderTypes.ShadingQualityvrRoughnessTextureTypes.ValueMappingvrScenegraphTypes.ActionvrScenegraphTypes.ChangeFlagvrScenegraphTypes.DuplicateOptionvrScenegraphTypes.MirrorModevrScenegraphTypes.NodeTypevrScenegraphTypes.UnshareOptionvrScenegraphTypes.VolumeTypevrSceneplateTypes.ContentTypevrSceneplateTypes.NodeTypevrSceneplateTypes.PositionvrSceneplateTypes.RepeatModevrSceneplateTypes.SizeTypevrSpectrum.AnalyticFunctionvrSpectrum.SpectraDefinesvrStyleTypes.ColorThemevrSubstanceTypes.PresetApplyModevrTextureTypes.AxisvrTextureTypes.MappingTypevrTextureTypes.RepeatModevrTextureTypes.TriplanarBlendModevrTransformService.VariantOptionsModevrTransformTypes.EulerRotationOrdervrTransformTypes.VariantValueBitMaskvrUVTypes.PostScaleModevrUVTypes.PreRotateModevrUVTypes.PreScaleModevrUVTypes.SeamModevrUVTypes.SnapshotModevrUVTypes.SnapshotStylevrUVTypes.TileAssignModevrUVTypes.UVProjectionModevrUVTypes.UVSetvrVRInputDeviceTypes.VisualizationModevrXRealityTypes.MarkerTrackingTypesvrXRealityTypes.MarkerTypesvrXRealityTypes.XRRenderModevrdAreaLightNode.QualityModevrdAtfSettings.ImporterVersionvrdAtfSettings.ModelStatevrdAtfSettings.SmartReferenceBehaviorvrdAtfSettings.SourceReferenceBehaviorvrdBRDFCommonSettings.LightingModevrdBRDFCommonSettings.VrsQualityvrdBlendChunk.DstFactorvrdBlendChunk.EquationvrdBlendChunk.SrcFactorvrdBrushOrientation.BrushAxisvrdBrushedMetalMaterial.MetalTypevrdBumpTexture.BumpTypevrdCarbonPattern.TypevrdCarbonPattern2D.TypevrdCarbonPattern3D.TypevrdChromeMaterial.MetalTypevrdChunkMaterial.TransparencyModevrdClearcoat.TypevrdCubeTextureChunk.InternalFormatvrdCubeTextureChunk.MagFiltervrdCubeTextureChunk.MinFiltervrdCubeTextureChunk.WrapModevrdDepthTestChunk.DepthFuncvrdDiskLightNode.QualityModevrdDisplacement.SilhouetteModevrdDisplacementTexture.DisplacementSilhouetteModevrdEnvironmentLightSource.LightTypevrdEnvironmentMaterial.GeometryTypevrdEnvironmentRaytracingSettings.ShadowingvrdFileExportSettings.SurfaceExportModevrdGLSLShaderParameterList.ParameterTypevrdGlassMaterial.DispersionInputTypevrdGlassMaterial.FresnelQualityvrdGlassMaterial.MediumTypevrdHDRLightStudio.LightPaintModevrdImmersiveMenu.MenuConstraintvrdImmersiveMenu.MenuOriginvrdMaterialChunkList.ChunkTypevrdMaterialRaytracingSettings.IlluminationModevrdMetallicCarpaintMaterial.PaintTypevrdPolygonChunk.CullFacevrdPolygonChunk.FillModevrdPolygonChunk.FrontFacevrdRectangularLightNode.QualityModevrdReflectivePlasticMaterial.FresnelQualityvrdRemoteEngine.TextureSlotTypevrdRoundedEdges.EdgeModevrdRoundedEdges.EdgeTypevrdSceneItemInfo.FlagsvrdShadowMaterial.OpacityModevrdShadowMaterial.ReflectionModevrdSkylightMaterial.GeometryTypevrdSkylightSkyAndSun.SkyModelvrdSoundNode.ReverbEffectvrdSoundNode.SpatializeSourceModevrdSphereEnvironmentMaterial.GeometryTypevrdSphericalLightNode.QualityModevrdSubstanceEnvironmentMaterial.GeometryTypevrdSubsurfaceScattering.MediumTypevrdSubsurfaceScattering.ModevrdTextureChunk.InternalFormatvrdTextureChunk.MagFiltervrdTextureChunk.MinFiltervrdTextureChunk.WrapModevrdTextureEngine.TextureSlotTypevrdVolumeScatterMaterial.NoiseModevrdWebEngine.TextureSlotTypevrdWovenClothMaterial.ClothPresetvrdWovenClothMaterial.WeaveTypevrdWovenClothMaterial.YarnType
What's New in API v1 and v2 2025
API V1
These are the new Python classes:
vrMovieExport:
getOcclusionRange
vrOSGWidget:
isDLSSSupported
API V2
These are the new Python classes:
- vrdGpuStateInfo
- vrdLinearGradient
- vrdLinearGradientStop
- vrdOpenVDBMaterial
- vrdVolumeMaterial
- vrdVolumeNode
- vrdVolumeScatterMaterial
- vrMaterialEntry
These are the changes made to API v2:
-
createViewpoint(documentation of return value changed)
-
- New in the
CameraSensorResponseEnum:
- New in the
CameraSensorResponse.AgXCameraSensorResponse.AgX_Punchy- New Enum:
CameraSensorResponseCurveMapping
- New Enum:
- New in
CameraColorspace:
- New in
CameraColorspace.AgXColorspacevrdAtfSettings:
- New functions:
getImportAnimationsgetImportSwitchMaterialsgetImportTexturessetImportAnimationssetImportSwitchMaterialssetImportTexturesvrdBaseLightNode:
setVolumeIlluminationMode: 'mode' parameter has been documented
vrdDeviceInteraction:
createControllerAction(documentation updated)
vrdEnvironmentMaterial:
- New functions:
getIlluminateVolumessetIlluminateVolumesvrdGlassMaterial:
- New functions:
getIndexOfRefractionSpectrumsetIndexOfRefractionSpectrumvrdSubsurfaceScattering:
- New functions:
getUseRoughnesssetUseRoughnessvrdTonemapper:
- New functions:
getSensorResponseCurveMappingsetSensorResponseCurveMappinggetColorspace(return value updated)
setColorspace(parametervalueupdated)
vrGUIService:
- New signals:
recentFilesChangedrecentFilesClearedvrHMDService:
- New functions:
getMixedRealityDepthEstimationEnabledsetMixedRealityDepthEstimationEnabledvrNodeService:
initFindCache(documentation updated)
vrReferenceService
vrReferenceService.setUpdateMonitoringInterval(msecs)(documentation updated)
vrScenegraphService:
- New functions:
createVolumevrScenegraphTypes:
- Added to the
NodeTypeEnum:
- Added to the
VolumeNode- New Enum:
VolumeType
- New Enum:
Environment Variables
We made a change to the environment variable VRED_DISABLE_ADP. ADP can now be disabled machine-wide by creating a new registry key, HKEY_LOCAL_MACHINE\SOFTWARE\Autodesk\Privacy\TrustLevel(string value), with a value of 1.
What's New in API v2 2024.2
This page shows what was added to and changed in the Python API v2 in VRED 2024.2, compared to 2024.1.
We have decided to postpone the release of the Python API v2, due to our plans to implement various changes and improvements related to Volume Rendering with VRED 2025 that will have an impact on the API.
Python Version
The Python version was updated to 3.11.6.
Since the library responsible for automatically updating Python 2 scripts to Python 3 has been deprecated as of Python 3.11, we recommend you update these scripts to Python 3 to avoid any future problems.
Qt Version
Qt has been updated to 6.2.10.
New Environment Variables
These are the new environment variables in 2024.2:
VRED_CLUSTERSERVICE_CONFIGVRED_CLUSTERSERVICE_DISABLE_ALLVRED_CLUSTERSERVICE_ENABLE_ALL
Removed Environment Variables
We removed the environment variable, STARVR_SDK.
API
This is a summary of the new functions, classes, and types.
- vrdBaseLightNode.getVolumeIlluminationMode() → vrLightTypes.VolumeIlluminationMode
- vrdBaseLightNode.setVolumeIlluminationMode(mode)
- vrLightTypes.VolumeIlluminationMode
- vrdEnvironmentMaterial.getIlluminateVolumes() →
bool - vrdEnvironmentMaterial.setIlluminateVolumes(value)
- vrGPUService.gpuStateInfo() →
List[vrdGpuStateInfo] - vrdGPUStateInfo
- vrMaterialTypes.OpenVDBVolume
- vrMaterialTypes.VolumeScatter
Python API V1 Changes
These are the Python API V1 changes found in 2024.2:
vrMovieExport - added the parameters
background_passandvolume_passtosetCombinedChannelsRenderPasses, and added the following functions:getDepthModegetDepthRangesetDepthModesetDepthRangesetOcclusionRangegetOcclusionRange
vrOSGWidget - added the following functions:
setActiveRenderPass- addedVOLUME_COLOR_LAYERparameterssetDisplayMode- removedVR_DISPLAY_VRHERO_XTAL
vrRenderSettings - changed the following functions:
setDenoiseAlpha- changed the parameter todenoiseAlphasetRenderPasses- addedvolume_colorto the list of passes
Python API V2 Changes
These are the Python API V2 changes found in 2024.2:
vrCADFileTypes - made the following changes:
Mayawas removedSLPwas added
vrdAtfSettings - renamed
Jt Open (Experimental)toJt OpenforgetJtToolkitvrdBaseLightNode - added the following:
getVolumeIlluminationModesetVolumeIlluminationMode
vrdDeviceInteraction- made changes to the documentation for the following classes:
addSupportedInteractionGroupcreateControllerActiongetControllerActionremoveControllerActionremoveSupportedInteractionGroupsetControllerActionMapping(including themappingparameter that changed)setSupportedInteractionGroups
vrDeviceService - made changes to the documentation for the following classes:
addBlockedDeviceModelOrSerialcreateInteractiongetBlockedDeviceModelsOrSerialsgetLeftTrackedHandgetRightTrackedHandgetVRDeviceBySerialNumberisBlockedDeviceModelOrSerialremoveBlockedDeviceModelOrSerialsetBlockedDeviceModelsOrSerialssetTrackingOrigindeviceCollisionStarteddeviceCollisionStoppeddeviceMoved
vrdFileExportSettings - added documentation to all
SurfaceExportModeenum entriesRenamed the parameter
valuetoenable, with any exceptions noted below, for the following functions:setExportAnimationClipssetExportAnimationCurvessetExportAnnotationssetExportCamerassetExportColorssetExportEnvironmentGeometriessetExportGeometrySwitchessetExportInvisibleDatasetExportLightmapssetExportLightssetExportMaterialSwitchessetExportMeshessetExportMetadatasetExportSceneplatessetExportScriptssetExportSurfaces- renamed thevalueparameter tomodesetExportTouchSensorssetExportTransformVariantssetExportVariantssetExportVariantSetssetExportVertexColorssetFbxFormat- renamed thevalueparameter toformatsetFbxVersionId- renamed thevalueparameter toidsetInlineTexturessetKeepEmptyGeometryNodes- renamed thevalueparameter tokeepsetKeepEmptyGroupNodes- renamed thevalueparameter tokeepsetKeepEmptyMaterialGroupNodes- renamed thevalueparameter tokeepsetKeepEmptyShellNodes- renamed thevalueparameter tokeepsetKeepUnusedMaterials- renamed thevalueparameter tokeepsetRemoveBSidessetStlFormat
vrdVertexBakeSettings - updated the
setIntensityThresholdfunction documentation.vrdVRDevice - made changes to the note, regarding the OpenXR mode, for the following:
addVirtualButtondisableRayenableRaygetSerialNumbergetWristOrientationAnglepickremoveVirtualButton- for both overloaded methodssetButtonPressedsetButtonTouchedsetTrackingMatrixsignalvibrate
vrFileIOService - removed the following signals:
addedGeometryaddLoadedMaterialpreExportGeometrychanged the spelling of 'cad' to 'CAD' and 'vred'to 'VRED'
added documentation for
projectupdated the documentation for the following functions:
checkCadType
getImageReadFilter
getImageReadFilter
importFiles
vrGPUService - added
gpuStateInfovrGUIService - added the
OpenVDBvalue to theDialogTypeenumvrHMDService - removed the following functions:
getStarVRRenderSettingssetStarVRRenderSettings
vrImmersiveInteractionService - changed the
setViewpointModedocumentationvrLightTypes - added the enum
VolumeIlluminationModevrMaterialTypes - added the following values in
MaterialType:VolumeScatterOpenVDBVolume
Removed
We removed support for vrdStarVRRenderSettings.
What's New in API v2 2024.1
Python for Exporting Nodes
We added new methods for exporting nodes. Look at vrFileIoService, vrdFileExportSettings, and vrdFileExportSettings::SurfaceExportMode. Some basic examples have been added to vrFileIOService showing how to import and export files, as well as how to change these settings. See vrdFileExportSettings and vrdFileExportSettings Example for additional information.
Environment Variable Updates
We fixed the following:
VRED_COLLABORATION_NO_UPLOAD- fixed ("uupload")VRED_CURRENT_PROJECT_DIR- removed the extra space before '_DIR"
We added the following:
VRED_IMPORT_PERFORMANCE_LOGVRED_SECURE_PYTHONVRED_WORKSPACES_PATH
API V1 Updates
We added the following to vrCollision:
getCollidingNodesgetCollidingTriangleIndicesgetCollidingTrianglesgetCollisionInfogetCollisionPoint
API V2 Updates
We added the following classes:
- vrdDisplacement
- vrdFileExportSettings
We changed these classes:
Changes to vrCADFileTypes:
CatiaV5- Updated the comment to refer to V5C3MFIFCSLP
Changes to vrdAtfSettings:
getImportColors()setImportColors()
Changes to vrdMaterialXProperties:
- The code example in the class description was updated (
PySide2->PySide6)
- The code example in the class description was updated (
Changes to vrdMDLProperties:
- The code example in the class description was updated (
PySide2->PySide6)
- The code example in the class description was updated (
Changes to vrFileIOService:
- We added the following:
abortJobs()exportNodes()getExportSettings()getExportSettingsFromPreferences()setExportSettings()- We removed the following signals:
addedGeometryaddLoadedMaterialimportedFilepreExportGeometrysequences
Changes to vrGUIService:
openExportDialog()openExportSceneDialog()
Changes to vrLightService:
copyLights()getLightsClipboard()isLightsClipboardEmpty()pasteLights()
Changes to vrMaterialTypes:
MergeOptions
- For
Default, the documentation changed - For
IgnoreName, the documentation changed - For
IncludeSwitchMaterials, the documentation changed - Added
ExcludeXRiteMaterials
Changes to vrQueryService:
- The class documentation was updated and a code example was added
What's New in API v2 2024
This page shows what was added to and changed in the Python API v2 in VRED 2024, compared to 2023.4.
Python Version
The Python version was updated to 3.11.3.`
- `VRED’s Python version can be printed from within VRED with:
print(sys.version)
Qt Version
The Qt version was updated from Qt 5 to 6.2. This includes that the PySide module name changes from PySide2 to PySide6, and shiboken2 to shiboken6.
When option “Preferences > Script > Translate script to current Python version” is enabled, the names PySide2 and shiboken2 are automatically replaced by PySide6 and shiboken6 on the fly before executing Python scripts in VRED.
Porting Applications from PySide2 to PySide6 ` - `VRED’s Qt version can be printed from within VRED with:
print(PySide6.QtCore.qVersion())
API
These are the new functions and classes:
vrGUIService.getViewCubeOpacity() → float
vrGUIService.getViewCubePosition() → vrGUIService.ViewCubePosition
vrGUIService.getViewCubeSize() → vrGUIService.ViewCubeSize
vrGUIService.isNavBarVisible() → bool
vrGUIService.isViewCubeVisible() → bool
vrGUIService.setNavBarVisible(value)
vrGUIService.setViewCubeOpacity(value)
vrGUIService.setViewCubePosition(value)
vrGUIService.setViewCubeSize(value)
vrGUIService.setViewCubeVisible(value)
vrHMDService.getActiveOpenXRRuntimeName() → string
vrHMDService.getActiveOpenXRSystemName() → string
vrHMDService.getOpenXRDepthLayerCompositionEnabled
vrHMDService.setOpenXRDepthLayerCompositionEnabled(enable)
vrMaterialTypes.MDL
vrMaterialTypes.MaterialX
vrRoughnessTextureTypes
vrdMDLMaterial
vrdMaterialXMaterial
vrdRoughnessTexture.getRoughnessMapType() → vrRoughnessTextureTypes.ValueMapping
vrdRoughnessTexture.setRoughnessMapType(mapping)
New Material Roughness
In VRED 2024, the material roughness is changed to a perceptually linear behavior and a new value range between 0 and 1. In older VRED versions, the behavior was non-linear and the maximum value was 40. When importing older files into VRED, material roughness values are automatically adjusted to the new behavior.
In case you set specific roughness values explicitly via script, for example with vrdPlasticMaterial.setRoughness(roughness), you must adjust the value in the script.
See this snippet for the conversion: snippets/convertRoughness.py.
For information on the Python Sandbox and other security information, see