ZBrushCentral

Blender and GOZ missing SubTools on import

@matb glad you get it working one way. Im currently looking into the issue you describe with the subtools and hope i can find a solution for this problem.
Unfortunately that is happening seemingly at random so i can not provide you any solution for this at the moment.

Did that mesh where you lost the subdivision arrive as a new subtool? That would explain why you lose the subdivisions.

EDIT:
@matb i am quite sure i found the issue and made a fix. So far i was not able to get any mess with this fix but maybe there are scenarios that i have not seen yet. Also i do not have a mac os to test it so maybe you run into issues with it.

To avoid the mess in zbrush i need to remove all the ZTL files that zbrush writes into the GoZ folder */Users/Shared/Pixologic\GoZProjects\Default* since this folder is only used for the GoZ exchange it should be a issue.

It would be great if you can try this version and see if it solves the duplication and subdivision loss issues.
Make sure you saved your files before trying this version to avoid messing up your file.
https://github.com/kromar/blender_GoB/archive/bugfix/subtool-mess-in-zbrush.zip

update> 21.07
@matb ive completely written the import on zbrush side to avoid all the mess with the subtools and tools. it would be great if you could give this a try and see if you encounter any issues.
I have not been able to test it on MacOS so that might not work.

EDIT:
@matb this should be good to use now, and a lot faster for your use case with a lot of objects.
in a test i did with 113 objects i got a significant speedup
v3_4_4: 3m 26s
v3_4_5: 32s

so about a factor of 6 faster and the old method would get slower the more subtools are imported.

https://github.com/kromar/blender_GoB/archive/feature/faster-import.zip

Hi @kromar

I am having problems with this latest version (3.4.6) running. I keep getting the following error report in Blender 2.83.3 when I click “Export to ZBrush” button. The “Import” from ZBrush works OK and doesn’t show any errors.

2020-07-28 12_02_24-Blender

I followed the install instructions in the README.md file exactly.

@zber2 can you navigate to that folder location and see if that .zsc file is there?
The only thing i could think off would be that you have the addon installed under another name and there might be some confusuin.
Have you tried to remove the blender addon completely and copy it to the addon folder again?

@kromar This is the one that I downloaded… https://github.com/kromar/blender_GoB/archive/feature/faster-import.zip which was named “blender_GoB-feature-faster-import.zip”

I did the renaming that was suggested in the README.md file wich was…

Configure Blender

_Note: If you have a previous version, remove it via the Addon panel (unroll the GoB entry and remove it) before continuing._

_Note: Github breaks (changes) name of zip file and the first (root) folder inside zip, when you download addon. Both zip file and first folder inside should be named: ‘GoB’
The addon final location should look like this:

  • C:\Users\XXXXX\AppData\Roaming\Blender Foundation\Blender\2.80\scripts\addons*GoB*

I removed any GoB add-on in Blender first before I did anything.

@zber2 can you try to run the zsc directly with zbrush? the error says it does not find the application so maybe you need to tell the system to open the zsc file with zbrush.

@kromar

Are you referring to this zsc file

2020-07-28 14_01_46-ZScripts
ZBrush is not an available option that I can select to open that file with.

I tried installing GoB via the Install button in Blender Preference and I tried putting GoB folder in manually and I still get the same thing. I’m on Windows 7 Pro if it matters.
I reverted back to GoB 3_3_8. That is the last one that works properly.

I really appreciate your efforts kromar, but don’t worry about it too much. Any new ones you post from now on, I will try though.

it looks like the default application is set to notepad on your system for the zsc file.

it should have a zbrush icon so that will be the default it opens with. if that is not correct the addon will not work since that is required to trigger the loading in zbrush.
image

if you right click on that script you should find a “Open With…” in the context menu where you can specify that it should always open with zbrush. that should hopefully fix your problem.
image

Yes, I tried that, but it won’t give me ZBrush as an option even if I browse to the ZBrush executable.

hm ok that is strange.

can you try via the windows settings, if you type “default apps” in the search it should take you right to it.
there should be a option for selecting app for file extension, maybe you can change it in there

I don’t have “Choose default apps by file type” option though. I’ll see what I can figure out though. Thanks kromar.

if you have a older operating system you might need to change it in the registry. can you tell me what version of windows you are running?
maybe try searching for Default Programs

I’m on Windows 7 Pro. All my ZBrush plugins work and the all have zsc extension. This is what baffles me because ZBrush is already associated with that file type. I am going to try re-installing Blender because now everytime I try GoB export out of Blender, it just opens a text file. It’s odd though that I don’t have any of these problems with GoB 3_3_8.

its not strange that it works with the old version, that uses some default zbrush GoZ process and in the new version im bypassing that with that zscript to overcome some of the limitations of the default method.

The zbrush plugins work because you opening them usually from within zbrush, this script needs to be executed from the system since i run it from blender so your system needs to load it with zbrush.
That is the reason why it opens a text file because the default is set to notepad and not to zbrush.

you do not have that additional option in the open with context menu?

you can verify and change the default app also via the registry if you are comfortable doing that, you should find it in this location:
HKEY_CLASSES_ROOT\zbrush.script.1\shell\Open\command

1 Like

This is what I have…

I had ZBrush Core Mini installed because I was curious but then un-installed it. I don’t know why this is like this. Can I type in the proper value to change it? But, still, GoB version 3.3.8 works no problem.

Yes, I do but for some reason it won’t let me select ZBrush.

ah there you have the problem, it still tries to open the file with zbrush mini as the path in the registry point to that, if you double click on the default entry you should be able to change that to zbrush and that should fix the issue. maybe a reboot is needed.

Ill try that and let you know. Thanks kromar!

update:

Well, I did all that and the Export to zbrush button still just opens a text window. I uninstalled and re-installed Blender and it’s still the same thing. :confused: :scream:

update again:

@kromar After all that, I checked again and I finally had the option to choose ZBrush for “Open With” for that particular zsc file in the AppsData folder. It’s all working now. So it must have been the registry tweak that did it.Thanks again kromar…You da’ man! :smiley:

1 Like

yeah im glad that worked out, i hope not to many will encounter this issue. i will make sure to include this in the FAQ i intend to write for some common trouble shooting issues.

1 Like

Hi @kromar

I am having a hell of a time trying to get GoB 3.6.0 (or any other version) to work with ZBrush. I have Blender 3.6.3 and ZBrush 2022.0.8. on Windows 11 Home. In the Blender header, I have 3 GoB buttons, “Export” “Import” and “Manual”. ZBrush GoZ will send the mesh to Blender no problem (I have to enable “Import” in Blender then click “Manual”) but, I cannot Export it back to ZBrush. When I Export back to ZBrush and enter ZBrush again, nothing changes. I have everything installed correctly. I have tried older versions of Blender and older versions of GoB and the result is the same. Blender doesn’t show any script errors either. I hope you can help me with this because it is driving me nuts.

Hi @zber2 do you have the maxon version of zbrush or the pixologic version?
The maxon version is currently not supported and might be the reason for what you describe.

I have the pixologic version. 2022.0.8

Thanks for replying @kromar