Differences in saving files between Macs and PCs?
I'm using the following function to save a project:
[VarDef, file, [FileNameAsk, ".ZBR", "OrthoProj"]]
[if, [StrLength, file] > 0,
[VarDef, filePath, ""] [VarDef, fileName, ""] [VarDef, fileExtension, ""]
[RoutineCall, FileNameSplit, file, filePath, fileName, fileExtension]
[IClick, "Document:Save As"]
[RoutineCall, Tool3DGetCurrentNumber, current3DTool]
[if, current3DTool > -1,
[FileNameSetNext, [StrMerge, filePath, fileName, ".ZTL"]]
[IClick, "Tool:Save As"]
The intent is to save both the document and the currently active 3D tool. It uses a couple of custom routines, but I believe what they do is fairly obvious from context.
When a use this on a Mac, I encounter a small difficulty; the save dialog comes up with a "." appended at the end of the default file name, so if I hit save without typing anything, the document is saved as "OrthoProj..ZBR". But other than that it works.
On the PC, the extra period does not appear, but hitting Save actually reports an error, saying something like:
Improper file name:
C:\Documents and Settings\Ken\Desktop\VIEWS\VIEWS\delete
To add even more confusion, the path that is given by this error message seems to remain constant, regardless of where on the disk I actually try to save the document. I've also encountered some other odd windows behavior, which I won't go into...
This is a real problem for me, so any suggestions would be most appreciated.
Some shots in the dark...
Is the "delete" part of your code? Is that the correct path? I believe ZBrush only understands 3 char extension names. (At least I have had this be a problem before)
Originally Posted by firstname.lastname@example.org
If you can show some of your code then we can maybe help more.
Your email showing up on the posts is a good way to get lots of spam. if these archives get searched by webCrawlers, you will get flooded. May want to change it. There are also some tricks to throw them off, at least for a while. but the best bet is not to use an email.