virtual eye example¶
virtualeye.py¶
1# © 2024 Autodesk, Inc. All rights reserved.
2
3plane = createPlane(2000, 1000, 1, 1, 0,0,0)
4plane.setRotation(-90,0,0)
5plane.setTranslation(0, 0, 500)
6
7sphere = createSphere(2, 250, 1,1,1)
8sphere.setTranslation(-14, -1216, 471)
9
10camera_beacon = createNode('Transform3D', 'camera_beacon')
11
12ve = vrVirtualEye(plane.getMaterial(), camera_beacon, 256)
13ve.setActive(true)
14ct = ve.getCameraTransform()
15ct.setTranslation(9, -29, 546)
16ct.setRotation(-90, 0, 0)
17ct.setScale(2, 1, 1)