ZBrushCentral

ZFileUtils Open File Dialog Limit

Hello Everyone!

I’ve been putting together a Zscript that would allow me to process a large number of files at once, but have noticed that there’s a limit on how many files can be opened in ZBrush through the Open Files Dialog. It can handle between 100-500 depending on the length of the file name. Anything beyond that comes up as “0 files selected”.

I’m using the ZFileUtils_TestZScript as my base, and I was wondering if this is a ZBrush or a Windows limitation? Is there a way for ZBrush to process a whole folder instead?

Thanks in advance!

There is a limit, I thought it was 256 but I’d have to check. Not sure why the file name should make a difference, unless the whole path exceeds 255 characters. That’s the limit for a string stored in a zscript variable.

As an alternative you could use the List Contents of Folder method. If I remember correctly this doesn’t have that restriction. But depending on what you are doing you may hit further restrictions. For example, a ZTool can have a max of 1024 subtools.

Thanks very much Marcus!

I think that’ll make me adjust my process a bit, and send me on the right path. I was aware of the string limit, but the length of the filename surprised me as well. Worst case scenario… I’ll just process about a 100 files at a time which isn’t bad at all.

Thanks again for your help