select folder dialog in external

    Jul 31 2015 | 7:46 am
    Hi, in a max external, i need to open a dialog to select a folder. How can i do that? Is there any source code?
    Thank you Thomas

    • Jul 31 2015 | 1:28 pm
      You can call getfolder with something like that:
      char path[MAX_PATH_CHARS];
      short result, vol;
      result = getfolder(&vol);
      if (!result) {
      	path_topathname(vol, NULL, path);
      	post("%s", path);
    • Jul 31 2015 | 3:49 pm
      Hi Emmanuel,
      thank you. The next problem is that the folder dialog needs a sort of "promptset". Something like folder_promptset("Please select the xyfolder");
      open_promptset doesn't change the dialog, i tried.