pptk icon indicating copy to clipboard operation
pptk copied to clipboard

Update point location without creating a new graph

Open lloydrayner opened this issue 5 years ago • 2 comments

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 :)

lloydrayner avatar Apr 29 '19 08:04 lloydrayner

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)

lloydrayner avatar Apr 30 '19 17:04 lloydrayner

Is there a better solution? Or only going deeper into their code? Thanks

brunoeducsantos avatar Oct 18 '19 15:10 brunoeducsantos