pptk
pptk copied to clipboard
Update point location without creating a new graph
Hey,
I wonder if there is a solution for updating a point location without having to close and restart the instance?
I have some moving points and I would like to be able to show this.
Thank you :)
Ok, found a solution. Although slightly messy.
The transition isn't very smooth, any ideas would be appreciated
xyz = pptk.rand(10, 3) v = pptk.viewer(xyz) v.set(point_size=0.2) for i in range(3): xyz = pptk.rand(10, 3) v.clear() v.load(xyz) v.set(r=4) time.sleep(1)
Is there a better solution? Or only going deeper into their code? Thanks