On 18/05/2018 at 12:24, xxxxxxxx wrote:
Hi,
I am trying just to open C4D file containing some polygonal objects as children of Subdivision surface object and re-save it with for Melange:
...
flagsLoad = c4d.SCENEFILTER_OBJECTS | c4d.SCENEFILTER_MATERIALS | c4d.SCENEFILTER_SAVECACHES
xDoc = c4d.documents.LoadDocument(xFilePath,flagsLoad)
newFileName = destFileName + "-melange.c4d"
fpathNew = os.path.join (destPath, newFileName)
flagsSave = c4d.SAVEDOCUMENTFLAGS_DONTADDTORECENTLIST | c4d.SAVEDOCUMENTFLAGS_SAVECACHES
c4d.documents.SaveDocument(xDoc,fpathNew,flagsSave,c4d.FORMAT_C4DEXPORT)
File gets created, but it clearly does not contain any cached data for Melange as file size remains the same, while it should ld be considerably higher because of SDS caching. When I manually open the file, check Save for Melange in Preferences and save the file, file size is indeed much bigger, so there is some problem in the script.
Any idea what can be wrong?
Thanks, Stan