ZBrushCentral

ZFileUtils location

Paging Dr Marcus…
I’ve got an update to ZBrushUtils from here. Which now works with the checksystem test script.

The question is where should it be really installed to - I don’t think that is covered by the readme?

Before, getting the new version, I noticed I’ve got two one in ZStartup\ZPlugs64\ScaleMasterData_2021\ZFileUtils.dll
and another in
ZStartup\ZPlugs64\ZBrushToPhotoshopData_2021\ZFileUtils.dll

Answers on a postcard, please. :slight_smile:

Hi,

You should use the latest version of ZFileUtils which is available here:
http://docs.pixologic.com/user-guide/customizing-zbrush/zscripting/zfileutils/

The page gives clear instructions on how to use it and there is a test zscript in the zip. I’d recommend always making sure you use this version rather than one from another source, just so that you have all the functions available.

HTH,
Marcus

Thanks for the link update. You’re right it does have clear uses usage instructions.
But not so clear instructions as to where it should be installed to. You have to sift through a script in order to find the location, which is counter intuitive.

PC:
ZBRUSH_ZSTARTUP\ZPlugs64\MyPluginData\ZFileUtils64.dll

MAC:
ZBRUSH_ZSTARTUP/ZPlugs64/MyPluginData/ZFileUtils.lib

I’m sorry if it doesn’t seem clear - It is literally at the top of that page, under " Setting the path to the DLL". The whole point of the ZFileUtils is to provide functions for people to use in their own scripts, so the best way of showing how to use it is with script examples. The location of the DLL doesn’t actually matter, so long as your script has the right path to it so ZBrush can load it.

It can be a “relative path” for example
[VarSet,dllPath,"MyPluginData\ZFileUtils64.dll"]
where the script is outside a folder called “MyPluginData” which contains the DLL. The script and its folder could be on the Dektop if you wanted, so long as you loaded the script through the ZScript:Load button.

Or an “absolute path” such as
[VarSet,dllPath,"C:\Program Files\Pixologic\ZBrush 2022\ZStartup\ZPlugs64\MyPluginData\ZFileUtils64.dll"]

The example given of
ZBRUSH_ZSTARTUP\ZPlugs64\MyPluginData\ZFileUtils64.dll
is a special form of absolute path that ZBrush automatically expands.

HTH,
Marcus

1 Like

That’s the chicken before the horse, to mix metaphors. But you can’t go wrong with explicitly adding “The location of the DLL doesn’t actually matter, so long as your script has the right path to it so ZBrush can load it.” :smiley:

Cheers, Marcus.