Closed ccechatelier closed 10 months ago
Hi Coco, in fact what you are doing is already the correct thing, because you set (or the jupyter env is automatically detected)
settings.default_backend = "2d"
then vp.show()
will return a PIL image in your jupyter notebook.
An alternative is to set:
settings.default_backend = "vtk"
then vp.show(..., screenshot="myimage.png")
will return a Plottter
your jupyter notebook.
Also you don't need N=1, offscreen=True, sharecam=False
in vp = Plotter().
I will try update screenshot()
so that it will do automatically that.
Hi Marco, thanks this solves the issue on the screenshot function, that's very nice :) Yet, I still have the issue that camera positions are not taken into account. It seems that there is a default position given that can't be updated.
My bad, I just noticed that the viewup
argument supersedes the camera
argument ...
Removing it allows for taking into account the given positions :)
Thanks a lot for your help !!!
Dear Marco, dear vedo community,
I am encountering some issues with the newest version of vedo.
The screenshot function used after showing a Plotter is not working anymore. No error whatsoever, no file generated, nothing. I had to go around and use the plotter.show as an Image, and save it raw. Doing so the camera position does not matter anymore, and the same view is showed everytime. Only the light are properly changing.
Here is the script associated to that issue :
Does anybody have an idea on the underlying problem that I might be facing ?
System: Ubuntu 20.04 Using VSCode, and Jupyter notebook
Thanks a lot in advance for any insights! Cheers, Coco