ZBrushCentral

Blender and GOZ missing SubTools on import

Hi, I’m trying to get GOZ working between blender and Zbrush. For some reason when I try and import SubTools to Blender some of the SubTools are missing, any ideas why this might be?

Hi @matb

Are you using the latest version of GoB from JoseConseco? If not, try that first.

Yes, that’s the version I’m using GOB

@matb

I’m using ZBrush 2020.1.4, Blender 2.83 and GoB 3.3.8 and I am not getting this problem. All subtools go to Blender and all come back to ZBrush. I even tried the Ryan_Kingslien_Anatomy_Model which has 89 subtools and all 89 went to Blender. You should present this to the guy that is maintaining GoB, which is Kromar. You can ask him here.

hi, are whole subtools missing or only parts of them? in your picture it looks like some bones are only partially transferred
image

do all the meshes have dedicated names ? it could be a problem if some subtools have the same name which is possible in zbrush but not in blender.

And can you check if you get any errors in the console when sending subtools from zbrush to blender, that would help to identify the issue
image

also i fixed some crashes with multible subtool transfer so maybe this version (3.3.10) fixes the issue you have https://github.com/JoseConseco/GoB/archive/GoZ-Blender_28.zip

Hi, thanks for the help with this. I’ve tried installing the new add-on but still having the same issue. However, if I try sending the visible SubTools from Zbrush to a new blank blender file seems to import everything. Is only when I try and send the SubTools to my blend file that has other objects in there that I get the problem. The meshes that do come through are complete, those small meshes are actually ligaments.

I’ve appended the new blender file to the blender file with the other objects and seems to have worked. Is there a limit to the number of SubTools with GOB? I’m on a Mac so I don’t have that console option unfortunately, will see if I can find out how to access the console on a Mac.

i am not aware of a limitation. how many subtools do you try to send over?

i found some tutorial here how to get the terminal window for blender on mac os, would be great if you could try this and see if you get any errors.

Hi, around 300 SubTools in total. I’ve managed to get everything in and seemed to be working fine. I’m now getting the problem where if I import from blender to ZBrush the SubTool is being added to the list of tools rather than updating the SubTool. This means I have 2 of the same mesh but all the subdivision levels are gone on the newly imported mesh. The 2 SubTools have exactly the same name, do you know any reason why this might be doing this? I’m guessing it’s something I’m doing or missing but can’t think of anything.

@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