Does anyone have a ZScript method to detect the presence of a partial (or full for that matter) mask?
My solution right now is to simply toggle the “viewmask” button on and off a couple of times. If a mask is present it will flash (darken) the masked parts which gives a visual confirmation… but how to verify the presence of a mask via scripting escapes me.
One possibility is to take a point count, press the hidepts button and take another point count and compare the two, but pressing the showpts button seems to destroy the mask except along the masked border… AND masks have a threshold intensity below which a point remains visible, so a low density mask may not be detected. Yes, you could save the mask using create alpha, but then each time you do that you generate another alpha - which pretty soon adds up.
And while I’m at it, it seems like it would be useful in 4.0 to be able to turn a mask off temporarily then turn it back on (not just Viewmask but actually disable its masking power.) Again, storing the mask as an alpha approximates that, but still, a new alpha is created each time… etc.
Ideas?
thanks, Sven