I want to create a button in the viewport layout tab that will take me to the templates sub-directory under C: users etc. Does anyone know the command string/text to do this?
Hi Tone- do you want to open a file from there, or import a viewport layout? Unfortunately,
Does not have a Browse option - it should and I’ll see if we can add that, but if you want to use this command, for now you’ll need to hard code the file path
! _-ReadViewportsFromFile "C:\Users\Pascal\AppData\Roaming\McNeel\Rhinoceros\5.0\Localization\en-US\Template Files\Small Objects - Millimeters.3dm"
Does that help? (note the ‘dash’ in front of the command name above- that’s needed to suppress the dialog. We might be able to force the dialog with SetWorkingDirectory as well- hang on a minute.
Yeah, this format works, if the goal is to read the viewports in:
! _-SetWorkingDirectory "C:\Users\Pascal\AppData\Roaming\McNeel\Rhinoceros\5.0\Localization\en-US\Template Files" _ReadViewportsFromFile
Thanks Pascal. It was the second one I was hoping for and both work a treat.