PDA

View Full Version : Question : ZSphereSet mask bug?



TVeyes
11-13-07, 04:56 PM
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.

SetMask-problem.jpg

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 (http://www.zbrushcentral.com/zbc/showthread.php?t=48678)

marcus_civis
11-20-07, 03:37 AM
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,

TVeyes
11-23-07, 12:12 PM
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.