ZBrushCentral

Visibiltiy, noob question

hi all,i’m a noob with zscript and i can’t find the way to invert visibility from code.
Can someone help me?
Thanks

Could you explain a little more of what you are trying to do? There’s no direct way to ‘invert visibility’ but there may be a suitable workaround.

after clicking on a shift + ctrl POLYGROUP I have the visibility on this and I want to reverse it

You could simulate a Shift+Ctrl+drag on the background like this:

[IButton,“Reverse Visibility”,“Reverse the visibility of partial visible mesh”,
[IKeyPress,SHIFT+CTRL,[IClick,1004,-4096,-4096,-4000,-4096]]
]