ZBrushCentral

Q: Advance string formatting options

Hi

I was wondering if zbrush by any chance has support for advance string formatting. I know there is the str find etc. But my string has dynamic text that will change per asset and would love to do something like split in array for every “” character or something, like python has or many other scripting languages?

Currently it seems I will have to export the string to txt file then run python to format that (which is easy) Just not sure how to get that txt file back into zbrush to get the string info?

Thanks in advance!

There’s no out-of-the-box zscript solution but it’s probably not difficult to write the necessary functions. It depends really on how complex your intended operations are, and how long the text file. The alternative is to write a dynamic library that does the work for you, using existing C++ functions.

Hi Marcus

Thanks, I kinda figured there wouldn’t be a solution and yes a dll is probably the best option. But no idea where to start when it comes to a dll.

But if you google regular expressions or even split functionthat python has that will give you an idea to what is needed. The ability to manipulate strings so you can have better control over folder structures in a nut shell. But there is a lot more it can be used for I am sure