mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 04:05:53 +08:00
Name the camera and add a second camera
This commit is contained in:
parent
9a766edf52
commit
d9374d5154
@ -24,9 +24,16 @@ class PrinterApplication(QtApplication):
|
|||||||
mesh = SceneNode(root)
|
mesh = SceneNode(root)
|
||||||
mesh.setMeshData(self.getMeshFileHandler().read("plugins/FileHandlers/STLReader/simpleTestCube.stl",self.getStorageDevice('local')))
|
mesh.setMeshData(self.getMeshFileHandler().read("plugins/FileHandlers/STLReader/simpleTestCube.stl",self.getStorageDevice('local')))
|
||||||
|
|
||||||
camera = Camera(root)
|
camera = Camera('3d', root)
|
||||||
camera.translate(Vector(0, 0, 5))
|
camera.translate(Vector(0, 5, 5))
|
||||||
self.getController().getScene().setActiveCamera(camera)
|
camera.rotateByAngleAxis(45, Vector(1, 0, 0))
|
||||||
|
|
||||||
|
camera = Camera('left', root)
|
||||||
|
camera.translate(Vector(5, 0, 0))
|
||||||
|
camera.rotateByAngleAxis(-90, Vector(0, 1, 0))
|
||||||
|
camera.setLocked(True)
|
||||||
|
|
||||||
|
self.getController().getScene().setActiveCamera('3d')
|
||||||
|
|
||||||
self.log('i',"Application started")
|
self.log('i',"Application started")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user