Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Joel-RoHe opened this issue Jan 10, 2022 · 0 comments
Open

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

Joel-RoHe opened this issue Jan 10, 2022 · 0 comments

Comments

@Joel-RoHe
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant