Page 1 of 1

any way to know displaybrushes layer id?

Posted: Sun Mar 15, 2015 8:54 pm
by Bugala
When i use "DisplayBrush" command with layers on, that brush will occupy the (i suppose) last layer spot, but is there any way for me to know the layerposition, except by following it myself so said, manually (ie. i keep using nextfreelayer variable to keep track of my layers)?

Re: any way to know displaybrushes layer id?

Posted: Mon Mar 16, 2015 3:58 pm
by airsoftsoftwair
You can just query #ATTRLAYERS after the call to DisplayBrush() to get layer position of the newly inserted brush layer. However, keep in mind that you can also use the "InsertPos" tag to make DisplayBrush() insert the layer into a different slot. See here:
http://www.hollywood-mal.com/docs/html/ ... Tags_.html

Re: any way to know displaybrushes layer id?

Posted: Mon Mar 16, 2015 7:00 pm
by Bugala
Ah, this will do very nicely to fix my age old problem of keeping tracfk of layers. I can finally forget keeping track of them and avoid all the bugs caused by that.