Skip to content

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

@Joel-RoHe

Description

@Joel-RoHe

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions