ZBrushCentral

Q: Creating folder

Hi

I am sure this has been asked a million time but couldn’t actually find it in the search.

I have used the dll from Marcus and it all works. The note even says it created the folder but no folder was created. I am using the stock standard code from Marcus in a button.

[IButton,“New folder”,
//the full path to the new folder
[VarSet,folderName,“C:/whatever folder here”]
[MessageOK,folderName]
[VarSet,folderExists,[FileExecute,[Var,dllPath],“FolderExists”,folderName]]
[If,folderExists,
[Note,“Folder exists. Operation cancelled.”,3]
[Exit]
,//else no folder
[VarSet,err,[FileExecute,[Var,dllPath],“MakeFolder”,folderName]]
[If,err,[Note,“An error occurred.”,2],[Note,“Folder created”,2]]
] // if statemen close
] // button close

Are you setting the dllPath variable?

Hi Marcus

I feel a bit stupid but at least if this happens someone else might learn from it as well. The routine call wasn’t part of the button or execution so wasn’t set properly :confused:

Thanks for quick reply though