Navigation

  • ☰
  • VRED Python API v2 documentation »
  • VRED Python examples »

Menu with Show Terminal button¶

  1. In the Variant Sets module, click the Script tab.
  2. From the toolbar, click Add Variant Set icon.
  3. Rename the new variant set to VR_Terminal.
  4. Copy and paste the following script into the Script window.
snippets/vr_terminal.py¶
 1# © 2024 Autodesk, Inc. All rights reserved.
 2
 3# Create VR menu button
 4vr_terminal = vrImmersiveUiService.createTool("VR_Terminal")
 5
 6# Set text label on button
 7vr_terminal.setText("Show\nTerminal")
 8
 9# Set module to display when clicked
10vr_terminal.setViewContent('Terminal')
  1. Right-click within the script tab and select Execute. Now, the Show Terminal button appears in the VR Menu.

Quick search

Table Of Contents

  • VRED Python examples
    • Animations
    • Annotations
    • Cameras
    • Collision detection
    • Connector
    • Constraints
    • File Import and Export
    • Geometry
    • Lightmaps
    • Materials
    • Measurement
    • Metadata
    • Physics
    • Programming
    • Rendering
    • Sceneplates
    • Scenetree
    • Sound
    • User input
    • User interface
    • vrMenu
    • Virtual Reality Device Interaction
    • Virtual Reality Device Handling
    • Virtual Reality Immersive Tools
    • Virtual Reality Script Plugins
    • Virtual Reality Collaboration
    • Virtual Reality Hands
    • Deprecated Virtual Reality Examples
    • Deprecated Scenetree Examples
    • Other Script Plugins
    • Uncategorized
    • Snippets
    • Deprecated Snippets
  • Node graphs in VRED
  • What’s new in VRED Python API v2
  • vrAnnotationService
  • vrAnnotationTypes
  • vrAssetsService
  • vrBakeService
  • vrBakeTypes
  • vrCADFileTypes
  • vrCameraFromAtUp
  • vrCameraService
  • vrCameraTypes
  • vrClusterManagerService
  • vrClusterService
  • vrClusterTypes
  • vrConstraintService
  • vrDecoreService
  • vrDeviceService
  • vrFileIOService
  • vrFileTypes
  • vrGPUService
  • vrGPUTypes
  • vrGUIService
  • vrGeometryService
  • vrGeometryTypes
  • vrHMDService
  • vrHandTypes
  • vrImageService
  • vrImageTypes
  • vrImmersiveInteractionService
  • vrImmersiveInteractionTypes
  • vrImmersiveUiService
  • vrLensFlareTypes
  • vrLightService
  • vrLightTypes
  • vrLogService
  • vrLogTypes
  • vrMaterialEntry
  • vrMaterialEntryId
  • vrMaterialEntryType
  • vrMaterialService
  • vrMaterialTypes
  • vrMathService
  • vrMetadataService
  • vrMetadataTypes
  • vrNodeService
  • vrObjectService
  • vrPhysicsService
  • vrPhysicsTypes
  • vrProgressService
  • vrQueryService
  • vrReferenceService
  • vrReferenceTypes
  • vrRenderTypes
  • vrRoughnessTextureTypes
  • vrScenegraphService
  • vrScenegraphTypes
  • vrSceneplateService
  • vrSceneplateTypes
  • vrSessionService
  • vrSpectrum
  • vrStyleTypes
  • vrSubstanceTypes
  • vrTextureTypes
  • vrTransformTypes
  • vrUVService
  • vrUVTypes
  • vrUndoService
  • vrUserMimeTypes
  • vrVRInputDeviceTypes
  • vrWebEngineService
  • vrXRealityTypes
  • vrdAimConstraintNode
  • vrdAnalyticSettings
  • vrdAnnotationNode
  • vrdAreaLightCone
  • vrdAreaLightNode
  • vrdAtfSettings
  • vrdBRDFCommonSettings
  • vrdBRDFMaterial
  • vrdBaseLightNode
  • vrdBaseLightProfile
  • vrdBillboardNode
  • vrdBlendChunk
  • vrdBoundingBox
  • vrdBrushOrientation
  • vrdBrushedMetalMaterial
  • vrdBsdfMeasurement
  • vrdBumpTexture
  • vrdButtonState
  • vrdCameraBaseNode
  • vrdCameraCollider
  • vrdCameraNode
  • vrdCameraTrackNode
  • vrdCarbon2DMaterial
  • vrdCarbonMaterial
  • vrdCarbonPattern
  • vrdCarbonPattern2D
  • vrdCarbonPattern3D
  • vrdChromeMaterial
  • vrdChunkMaterial
  • vrdClearcoat
  • vrdClipPlaneNode
  • vrdColorCorrection
  • vrdConstraintNode
  • vrdCubeTextureChunk
  • vrdDecoreSettings
  • vrdDeltaLightNode
  • vrdDepthTestChunk
  • vrdDeviceAction
  • vrdDeviceActionSignal
  • vrdDeviceInteraction
  • vrdDeviceMessageData
  • vrdDirectionalLightNode
  • vrdDiskLightNode
  • vrdDisplacement
  • vrdDisplacementTexture
  • vrdDistanceLODNode
  • vrdEnvironmentColorCorrection
  • vrdEnvironmentMaterial
  • vrdEnvironmentNode
  • vrdEnvironmentRaytracingSettings
  • vrdEnvironmentShadowsAndIllumination
  • vrdEnvironmentSwitchMaterial
  • vrdEnvironmentTransformation
  • vrdEyeGaze
  • vrdFileExportSettings
  • vrdFindOptions
  • vrdFlakeLayer
  • vrdFlipflopCarpaintMaterial
  • vrdFlipflopFlakeLayer
  • vrdFoveatedQuality
  • vrdGLSLShaderChunk
  • vrdGLSLShaderParameter
  • vrdGLSLShaderParameterInt
  • vrdGLSLShaderParameterList
  • vrdGLSLShaderParameterMatrix
  • vrdGLSLShaderParameterReal
  • vrdGLSLShaderParameterVec2f
  • vrdGLSLShaderParameterVec3f
  • vrdGLSLShaderParameterVec4f
  • vrdGeometryNode
  • vrdGlassMaterial
  • vrdGpuInfo
  • vrdGpuStateInfo
  • vrdGradingLut
  • vrdGradingPrimary
  • vrdGradingRGBMCurve
  • vrdGradingTone
  • vrdHDRLightStudio
  • vrdHostSwitchNode
  • vrdIlluminationBakeSettings
  • vrdImage
  • vrdImmersiveMenu
  • vrdImmersiveTool
  • vrdImmersiveToolSignal
  • vrdIncandescence
  • vrdLayeredMaterial
  • vrdLensFlareEffect
  • vrdLensFlareElement
  • vrdLensFlareFxElement
  • vrdLensFlareGhost
  • vrdLensFlareGhostLine
  • vrdLensFlareGlow
  • vrdLensFlareRing
  • vrdLensFlareStar
  • vrdLensFlareStreak
  • vrdLightLinkSetNode
  • vrdLightPortalMaterial
  • vrdLightProfile
  • vrdLightTexture
  • vrdLightTransform
  • vrdLightmap
  • vrdLineChromeMaterial
  • vrdLineChunk
  • vrdLinearGradient
  • vrdLinearGradientStop
  • vrdMDLMaterial
  • vrdMDLProperties
  • vrdMarker
  • vrdMaterial
  • vrdMaterialChunk
  • vrdMaterialChunkList
  • vrdMaterialList
  • vrdMaterialNode
  • vrdMaterialPoolNode
  • vrdMaterialRaytracingSettings
  • vrdMaterialXMaterial
  • vrdMaterialXProperties
  • vrdMatrixTransformNode
  • vrdMeasuredCarpaintMaterial
  • vrdMeasuredMaterial
  • vrdMetadata
  • vrdMetadataEntry
  • vrdMetadataEntryList
  • vrdMetadataSet
  • vrdMetallicCarpaintMaterial
  • vrdMultiMarker
  • vrdMultiMaterial
  • vrdMultiPassMaterial
  • vrdNPRSettings
  • vrdNode
  • vrdNodeInfo
  • vrdNodeList
  • vrdOCSMaterial
  • vrdObject
  • vrdObjectList
  • vrdObjectSignal
  • vrdOpenGLInfo
  • vrdOpenVDBMaterial
  • vrdOrientationConstraintNode
  • vrdParentConstraintNode
  • vrdPerspectiveMatch
  • vrdPhongMaterial
  • vrdPhysicsConfig
  • vrdPhysicsConvexConfig
  • vrdPhysicsHullConfig
  • vrdPhysicsInfo
  • vrdPhysicsTrianglesConfig
  • vrdPlasticMaterial
  • vrdPointLightNode
  • vrdPolygonChunk
  • vrdPositionConstraintNode
  • vrdProjectMergeSettings
  • vrdRayFile
  • vrdRayFileInfo
  • vrdRayIntersection
  • vrdRayLightNode
  • vrdRaytracingInfo
  • vrdRectangularLightNode
  • vrdReferenceNode
  • vrdReflectivePlasticMaterial
  • vrdRoughnessTexture
  • vrdRoundedEdges
  • vrdSVBRDFMaterial
  • vrdSceneImportSettings
  • vrdSceneItemInfo
  • vrdSceneObject
  • vrdSceneplateNode
  • vrdSessionUser
  • vrdShadowMap
  • vrdShadowMaterial
  • vrdSkylightLocation
  • vrdSkylightMaterial
  • vrdSkylightSkyAndSun
  • vrdSoundNode
  • vrdSoundObstructorNode
  • vrdSphereEnvironmentMaterial
  • vrdSphericalLightNode
  • vrdSpotLightNode
  • vrdStereoSwitchNode
  • vrdSubstanceEnvironmentMaterial
  • vrdSubstanceMaterial
  • vrdSubstancePreset
  • vrdSubstanceProperties
  • vrdSubsurfaceScattering
  • vrdSurfaceNode
  • vrdSwitchMaterial
  • vrdSwitchNode
  • vrdTessellationSettings
  • vrdTexture
  • vrdTextureBake
  • vrdTextureBakeSettings
  • vrdTextureChunk
  • vrdTextureSettings
  • vrdTireMaterial
  • vrdTireTextureSettings
  • vrdTonemapper
  • vrdTrackedHand
  • vrdTransformNode
  • vrdTransformNodeVariant
  • vrdTransparency
  • vrdTurntable
  • vrdUVBaseProjectionSettings
  • vrdUVCylindricalProjectionSettings
  • vrdUVLayoutSettings
  • vrdUVOptimizeSettings
  • vrdUVPlanarProjectionSettings
  • vrdUVSeamSettings
  • vrdUVTriplanarProjectionSettings
  • vrdUVUnfoldSettings
  • vrdUiEngine
  • vrdUnicolorCarpaintMaterial
  • vrdVRDevice
  • vrdVRDeviceSignal
  • vrdVarjoRenderSettings
  • vrdVelvetMaterial
  • vrdVertexBake
  • vrdVertexBakeSettings
  • vrdViewpointNode
  • vrdVirtualTouchpadButton
  • vrdVolumeMaterial
  • vrdVolumeNode
  • vrdVolumeScatterMaterial
  • vrdWebEngine
  • vrdWovenClothMaterial
  • vrdXRayMaterial
  • vrdXRiteMeasuredMaterial

Previous topic

(Deprecated) tagEditing

Next topic

A toolbar icon with a single action

Navigation

  • index
  • next |
  • previous |
© Copyright 2024, Autodesk Inc.. Created using Sphinx 4.0.2.