Export selected by automatically using the object name as a file name? Rhino 7 wish

Hi Brecht

Maybe … but I have no Mac here, so cannot test that. :confused:

Does the error message also say something about the line number where the error occurs in the script ?

Unfortunately not.
The only thing I can give you is that says:
“Directory “(null)” does not exist”

I’m sorry but I don’t know what is going wrong …
I hope someone, expert of Mac scripting, might help us here. :confused:


print rs.DocumentPath()

1 Like

Sorry for the late reply …

As Javier suggests, what happens if you run this micro-script ?
What does Rhino write ?

import rhinoscriptsyntax as rs
print rs.DocumentPath()

If document is not saved it returns null so you cannot print nothing
1-. ensure your document has a path
2. if not give a path or use something like workingfolder or so as parameter