simon9
(Simon)
March 17, 2021, 1:22pm
1
By default the export function opens the browser in the last used directory.
Can I use a macro or script to open the file browser into the directory where the current 3dm file is located ?
I am usually working on multiple projects at the same time and I constantly find myself needlessly browsing between directories because of this.
pascal
(Pascal Golay)
March 17, 2021, 3:15pm
2
Hi Simon - see if this does the right thing -
ExportToCurrentFileFolder.py (677 Bytes)
To use the Python script use RunPythonScript
, or a macro:
_-RunPythonScript "Full path to py file inside double-quotes"
-Pascal
1 Like
simon9
(Simon)
May 8, 2021, 12:31pm
3
Sorry for the late reply, I wasn’t able to test this until now.
Happy to report that this works flawlessly.
Thanks a lot !
simon9
(Simon)
May 8, 2021, 12:48pm
4
Could I add a line to this script that copies the entire filename’s filepath to the clipboard ?
pascal
(Pascal Golay)
May 8, 2021, 3:42pm
5
Hi Simon - updated above to clipboard the path but not the file name, which as currently written, the script does not know, that will take a slightly different approach…
-Pascal