pptk icon indicating copy to clipboard operation
pptk copied to clipboard

pptk viewer hangs when executed with cmd/prompt, outside IDE

Open Joel-RoHe opened this issue 3 years ago • 0 comments

Hello,

I am working on a system that uses pptk to visualize point clouds. When I test my script in the terminal embedded on the IDE (Spyder), everything works perfectly.

However, when I execute the program using the python launcher, the python interpreter, or even IPython (the IDE uses it), the result is always the same: everything seems to be ok, but after a few seconds the viewer does not respond anymore, and I have to stop it.

This is a minimal example for which this happens.

import pptk

yellow =  [255/255,255/255,0/255]

node_pos = []
node_color = []

for i in range(10):
    
    node_pos.append([i,0,0])
    node_color.append(yellow)

v = pptk.viewer(node_pos)
v.set(point_size=0.5)
v.set(show_info=True)
v.set(show_grid=True)

while True:
    v.attributes(node_color)

Has anyone come across something similar? Do you know how to fix it?

Thank you

Joel-RoHe avatar Jan 10 '22 21:01 Joel-RoHe