I would like to know how to set the resolution of snapshot. Having read the doc of snapshot function, it doesn't look like there is a place to set the resolution parameter.
By the way, how to debug in CityEngine? Can I import the lib in PyCharm?
Resolution in the interface is dealt with by adjusting size in the dialogue box for snapshots. Resolution for snapshots in python is achieved by using pixel width/height so it code might look like this: imgwidth = 1920imgheight = 1080
view = ce.get3DViews()[0]view.snapshot(ce.toFSPath('images')+"/filepath/filename.png",imgwidth,imgheight)
Hope this helps.
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.