On 30/05/2014 at 11:02, xxxxxxxx wrote:
I have the following file:
I:\PRJ\0_ADMIN\JESSE\SHOTS\JES_001\ADMIN\JES_001_ADMIN\JES_001_ADMIN_v12_PUB.c4d
However, when I do the following :
doc=c4d.documents.GetActiveDocument()
fileDir=doc.GetDocumentPath()
fileName=ntpath.basename( doc.GetDocumentName() )
if fileDir and fileName :
filePath=os.path.join( fileDir, fileName )
I get the following path:
0_ADMIN\JESSE\SHOTS\JES_001\ADMIN\JES_001_ADMIN\JES_001_ADMIN_v12_PUB.c4d
Which of course, doesn't exist. Does anyone know why it is not returning the full path for my file?
Also, it seems a bit... Odd? That when I use "GetDocumentName", it doesn't always return just the filename. If I save the fullpath name, the document name is set to the full path, instead of just the file name. Which is kind of non-intuitive.