Code: Select all
allGFD = scene.getGridDomains()
if len(allGFD) != 0:
for dom in allGFD:
if dom.isExportResourceActive(EXPORT_GRID_DOMAIN_GFC):
exportPath = dom.getExportResourcePath(EXPORT_GRID_DOMAIN_GFC)
newPath = incrementVersionAtPath(exportPath)
if newPath != -1:
dom.setExportResourcePath(EXPORT_GRID_DOMAIN_GFC, newPath)
exportPath = ''
if dom.isExportResourceActive(EXPORT_GRID_DOMAIN_PROXY):
exportPath = dom.getExportResourcePath(EXPORT_GRID_DOMAIN_PROXY)
newPath = incrementVersionAtPath(exportPath)
if newPath != -1:
dom.setExportResourcePath(EXPORT_GRID_DOMAIN_PROXY, newPath)
exportPath = ''
#etc