Simple

sceneplates/simple.py
 1# © 2024 Autodesk, Inc. All rights reserved.
 2#
 3# Example to show how to insert one front plate
 4#
 5# vrSceneplateService is used to create new scene plates
 6# vrdSceneplateNode is used to change scene plate properties
 7#
 8
 9# Query parent object for all scene plate creation
10theRoot = vrSceneplateService.getRootNode()
11
12# Create text front plates attached to windows sides
13theNode = vrSceneplateService.createNode(theRoot, vrSceneplateTypes.Frontplate, "Plate")
14
15# Cast it to a scene plate object
16thePlate = vrdSceneplateNode(theNode)
17
18# Set scene plate type
19thePlate.setContentType(vrSceneplateTypes.Text)
20
21# Set some properties from scene plate 
22thePlate.setText("The Plate")
23theFontColor = QVector3D(0.0, 0.2, 1.0)
24thePlate.setFontColor(theFontColor)
25thePlate.setPosition(vrSceneplateTypes.Center)