1

I try to setting camera position of pptk, with this method:

xyz = pptk.rand(100, 3)
v = pptk.viewer(xyz)
v.set(lookat=[0,0,0])

this working well, the camera position change. But when I left-clik on it, to move the point cloud, the camera position return to the original position

Do you have an idea how to maintain the camera position Thank you

pascal_r
  • 11
  • 2

2 Answers2

0

Please send the look-at coordinates as a tuple (0,0,0) instead of a list [0,0,0].

v.set(lookat=(0,0,0))

Dharman
  • 30,962
  • 25
  • 85
  • 135
0

I found this bug too. I'm currently working around it by first using the mouse wheel to move in/out on the point cloud before clicking; then the look at position doesn't change.

simbamford
  • 71
  • 1
  • 9