ZBrushCentral

How to set layer flags?

Sven pointed me to an excellent thread about manipulating layers, wherein TVeyes showed how to get information about active and visible/invisible status using IGetFlags. So the next question–what is the easiest way to change these properties in layers? I saw a reference to using ISet, but it hasn’t worked for me, and there is no ISetFlags. It’s possible to write routines to do this, of course, testing a layer with IGetflags and then using IPress to set the appropriate properties, but it’s messy. For one thing, you need to scan all of the layers before doing that, so you can find, remember, and then restore the active layer.

So I just wanted to know if someone knew of something simpler?

Thanks,
Ken

Again, I send my thanks to TVeyes who pointed the way on this.

Among all the other info, the IGetFlags command tells you which layer is the active layer (value of 10 or 11 depending on if that layer is enabled).

Yes, there is no ISetFlags command. I looked for that one too.

As for the routine? I guess I do it the messy way, myself. :slight_smile:

Sven

ZScripting is full of messy ways of doing things. Sometimes they need a lot of puzzling over. It’s that that makes it such fun… and, at times, infuriating. :slight_smile: