1. #1
    Moderator Follow User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    11,462

    Default ZFileUtils updated for 4R7 - March 4 2016

    Hi,

    The ZFileUtils, which extends zscript functionality through a dynamic library, has been updated for ZBrush 4R7. This version includes files for both 32bit and 64bit.

    If you are updating a plugin then please check the included sample zscript, especially on how to get to correct file path for 32bit/64bit. When creating a plugin for both versions of ZBrush 4R7 you will need to install your plugin both in the ZStartup/ZPlugs folder (for 32 bit) and in the ZStartup/ZPlugs64 (for 64 bit). The CheckSystem routine included in the zscript example shows how you can use a single zscript for all installations.

    With this new version, another thing to consider is how your plugin handles any temporary files it needs to write. ZBrush and its plugins now write all temp files to folders within the ZBrushData folder located in the Public/Shared folder. In a typical installation this will be at C:\Users\Public\Documents\ZBrushData on Windows and at /Users/Shared/ZBrushData on MacOSX. Plugins write to their own folder inside the ZBrushData/ZPluginData folder, and the new ZFileUtils documentation shows how you can add your own plugin data folder if you wish. It's not essential that you follow this route but writing to the Public/Shared folder can avoid file read/write permissions issues.

    Read more and download ZFileUtils here

    Latest version - March 4 2016 - adds function for renaming Layers/SubTools



    I hope you find the ZFileUtils useful.
    Last edited by marcus_civis; 03-04-16 at 03:58 AM. Reason: update

  2. #2

  3. #3
    Member Follow User Gallery
    Join Date
    Feb 2013
    Location
    UK
    Age
    36
    Posts
    59

    Default

    Couldn't wait for it and wrote my own version of ZFileUtils64...
    Came to forum to post it and yeah here we go I have found original already uploaded!
    But nothing lost... at least I have learned how to write dll's for zbrush ;P

    Thanks Marcus!

  4. #4
    Moderator Follow User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    11,462

    Default

    Doug and Piosio,
    You're welcome.

    Quote Originally Posted by Piosio
    Couldn't wait for it and wrote my own version of ZFileUtils64...
    Came to forum to post it and yeah here we go I have found original already uploaded!
    But nothing lost... at least I have learned how to write dll's for zbrush ;P
    Well, that's great, of course, and will open up other possibilities!

  5. #5
    Senior Member Follow User Gallery
    Join Date
    Jul 2002
    Location
    Copenhagen
    Age
    45
    Posts
    2,561

    Default

    Thank you Marcus, much appreciated

    Do you happen to know more about the read/write permission issue and when that might appear? I seem to remember some people having weird problems in general where the read/write permissions turned out to be the culprit, but not in relation to zplugins. Is it a common issue still? Or maybe just an occasional occurrence due to overzealous IT departments?

    I just realised that my Mac ZBrush installation is for all users on this machine, but I can't remember if I selected that option myself or if it even was a choice. Which would make my concern irrelevant. In any case, for some plugins I would prefer not to use the shared folder for storing data as it may contain credentials specific to the currently logged in user.
    Mark

  6. #6
    Moderator Follow User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    11,462

    Default

    Hi Mark,

    I honestly don't know how often it's been an issue but I know that it has cropped up in Pixologic Support often enough for ZBrush to move all its temp files to the Shared/Public folder. I think that mostly it's been in schools or studios where users do not have administrator privileges.

    HTH,

  7. #7
    Senior Member Follow User Gallery
    Join Date
    Jul 2002
    Location
    Copenhagen
    Age
    45
    Posts
    2,561

    Default

    Ok, that would make sense. Thanks. But would that not mean most zbrush users login to their computers with administrative privileges? Naughty, naughty ZBrushers indeed. No presents for you
    Mark

  8. #8
    New Member Follow User Gallery
    Join Date
    Nov 2013
    Location
    Johannesburg, South Africa
    Posts
    22

    Default GOUVLayout 64Bit

    Hi Marcus, I remember the GOUVLayout script loosing its wind and grinding to a halt because of there was no 64Bit version of ZFileUtils to make the transition to r7 64Bit. Now that this is available I am hoping the much needed ZBrush 4r7 64Bit bridge to the Headus UVLayout app might come back to life?
    "Open Source educates the world."

  9. #9
    Moderator Follow User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    11,462

    Default

    Quote Originally Posted by JayBass
    GOUVLayout 64Bit

    Hi Marcus, I remember the GOUVLayout script loosing its wind and grinding to a halt because of there was no 64Bit version of ZFileUtils to make the transition to r7 64Bit. Now that this is available I am hoping the much needed ZBrush 4r7 64Bit bridge to the Headus UVLayout app might come back to life?
    Hi JayBass,

    That script was developed by a user who doesn't seem to have been to ZBC for a while. He did post his code though, so it may be possible to get the script working OK with 64bit ZBrush. I'll take a look next week and PM you when I have something for you to test (I don't have UVLayout).

  10. #10
    New Member Follow User Gallery
    Join Date
    Nov 2013
    Location
    Johannesburg, South Africa
    Posts
    22

    Default

    Thanks for the speedy reply Marcus, that would be totally awesome.
    UVLayout can be downloaded free as a trial with the limitations being only less internal app functionality, but does give full save and all basic application options, all one really needs for successful "Plugin" testing. And it is 12mb in size as a windows install or 16mb for Mac.

    http://www.uvlayout.com/index.php?option=com_wrapper&Itemid=72

    I am also willing to test the hell out of it and provide solid feedback for as long as you are willing to give it steam.

    Only have Windows though(64 & 32), I do have some friends that use it on Mac who would test along side me.
    "Open Source educates the world."

  11. #11
    Moderator Follow User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    11,462

    Default

    Thanks JayBass,

    I've sent you a PM.

  12. #12
    Moderator Follow User Gallery
    Join Date
    Jun 2004
    Location
    UK
    Posts
    11,462

    Default

    I've made a small update to the ZFileUtils to include a new function "PasteText" for renaming 3DLayers or SubTools. Many thanks to TVeyes for the idea on how to achieve this, as he explains in this thread.

  13. #13
    Senior Member Follow User Gallery
    Join Date
    Feb 2015
    Location
    Paris
    Posts
    263

    Default

    hey Marcus, why to not put the full code on Github ?
    Plugins & Toolsets for Zbrush 4R8 : zCycler Pro | Plugin Manager |Matiere 3d | Twitter | @Facelessmindz

  14. #14

    Default

    It was great, can not wait for it and wrote my own version of ZFileUtils64

  15. #15
    Senior Member Follow User Gallery
    Join Date
    Nov 2010
    Location
    Sydney, Australia
    Posts
    150

    Default Get folder dialogue?

    Hiya Marcus, I'm writing a plugin to make exporting to substance easier. One thing I need to achieve it is a way for the user to select a destination folder. So far I can only find a way to allow the user to select a file. I'm after the normal file explorer (with Quick Access etc) but instead of it only working on file select, you could select a folder. Some apps show the janky little folder tree selector dialogue, I'd like to avoid that

    One reason I'm after this: subtool master's export all requires you to enter at least a letter into the dialog, and then prefixes your files with that. I need to, among other things, match the filename and subtool name. I have the export part working, but I can't find a way to allow the user to select a folder that isn't something hacky like selecting a dummy file that sits in a target folder already, and pulling the path from that.

    Thanks for reading!

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •