ZBrushCentral

Question : ZSphereSet mask bug?

Hi,

Trying to set the mask value of a single zsphere seems to connect that zsphere to the root zsphere, as well as setting the mask. Disabling Draw > ZAdd stops the root zsphere connection from happening, but unfortunately also stops the mask from being set.

[attach=76255]SetMask-problem.jpg[/attach]

I was going to file it under bugs and drop my plans for zsphere masking but I seem to remember Digits having troubles with masking back in 1.55b/2.0. Anyone remember anything ?

Here is the code in case it is just my machine. Select a zsphere in move mode and press the script button.


[Ibutton, "Set ZSphere Mask", ,
[VarSet, ZSphere, [ZSphereGet, 8]]
[If, ZSphere > -1,
[ZSphereEdit, [ZSphereSet, 6, ZSphere, 255] ,1]
]
]

Edit> Saw this thread after posting. Probably related.ZSphere Script Misbehaviour

Attachments

SetMask-problem.jpg

Hi Mark,

As you have found, some of the ZSphere commands do not work properly in 3.1. However, there is a workaround for this particular problem [perhaps you found it also?] by simply resetting the parent zsphere:


[IButton, "Set ZSphere Mask", ,
[VarSet, ZSphere, [ZSphereGet, 8]]
[If, ZSphere > -1,
[ZSphereEdit, 
	[VarSet,parent,[ZSphereGet, 7, ZSphere]]//stores parent zsphere
	[ZSphereSet, 6, ZSphere, 255] 
	[ZSphereSet, 7, ZSphere, parent] //restores parent zsphere
	,1]
]
]

This works well for me.

HTH,

Thanks Marcus, I think it is all coming back to me. The problem also existed in ZBrush 2 and Digits described the same workaround which seemed to work fine.

Thanks for the help.