MoI discussion forum
MoI discussion forum

Full Version: How to open any folder with a new created button by Moi3D?

From: Franz
14 Sep 2017   [#1]
I am really excited to use moi3d and watch the forum-news every day. A lot to learn from the professionals. I like for instance to use the snapshot from Max. How can I creat a button to open the folder "shapshot" where the images are? It would be practically. But I`m not able to write a command or script for this button.
From: Michael Gibson
14 Sep 2017   [#2] In reply to [#1]
Hi Franz, the script for opening the snapshots folder would be like this:

moi.filesystem.shellExecute( moi.filesystem.getProcessDir() + 'snapshots' );

That could go in the onclick="" handler on a button or also set up a shortcut key with this as the command for the shortcut key:

script: /* Open snapshots folder */ moi.filesystem.shellExecute( moi.filesystem.getProcessDir() + 'snapshots' );

- Michael
From: Franz
14 Sep 2017   [#3]
Thank you Michael, really a quick help, I'm so happy Moi and the community around it!