Hi Shane, an absolute file path on the Mac should start with the / character, and also the regular directory for users is named 'Users', not just 'user' like you've written there.
So for instance on my machine where my user name is michael to write a file to my user directory would look like this:
script:moi.geometryDatabase.fileExport( '/Users/michael/test.obj' );
The fileExport() method will write just the selected objects to the file so you will need to make sure you have a selection first before calling that.
If you want to write out everything regardless of selection then use the saveAs method instead, like: moi.geometryDatabase.saveAs( '/Users/michael/test.obj' );
Hope this helps!
- Michael
|