I often need to take snapshots of my scenes and have tried to write a small python script, which would automatically export all my bookmarks. But when running the script nothing happens (or at least the directory is still empty).
Any help would be greatly appreciated.
The full script goes as follows:
Created on 14/09/2017
from scripting import *
# get a CityEngine instance
ce = CE()
def exportImages(directory, Tag=""):
views = ce.get3DViews()
for v in views:
for b in v.getBookmarks():
path = directory + "\_" + str(b) + str(v) + str(viewports.index(v)) + "_" + Tag + "_raw.png"
if __name__ == '__main__':