Just thought to try something, and found out some more interesting things.
This is my previous script, slightly modified to specify saving a file as one of two types (.ZBR or .foo). In addition, the default filename now has a .zbr at the end:
[If, 1,
[VarDef, file, [FileNameAsk, “.ZBR.foo”, “OrthoProj.zbr”]]
[Note, file]
]
On a Mac, the behaviour is that the filename shows up as “OrthoProj.ZBR.”, the two file types appear in a popup list, and the chosen type is appended to the filename when “Save” is pressed, i.e. the result is “OrthoProj.zbr…ZBR” or “OrthoProj.zbr…FOO”.
On a PC, only one possible extension is shown, being “.ZBR.foo”. The default filename shows up “OrthoProj.zbr”, and when “Save” is chosen, the path is accepted but the “.ZBR.foo” extension is not appended to it. In my previous version of this little script, the lack of an extension on the default file name caused a path error to be reported when attempting to save under the default filename.
Is there a way to tell if ZBrush is running on a Mac or PC?
Cheers,
K