Hi guys and happy new year!
Ontopic:
Refering to
this thread.
I've just "found" a vanilla way about setting the layer transparency, and heres an example to assign a value of 25 % transparency on the current layer:
Well yeah, it works simple as that, by appending an xdata to the layer's elist.
The problem is that I have no idea about bit handling and I'm wondering could anyone reverse engineer this part of LM's suggestion in that thread:
(fix (- 100 (/ (logand trn
-33554433) 2.55)))
So it would be possible to write a subfunction that accepts integer in 0-90 range to set the transparency on layer x (without command-calls).
P.S. I know its doable with an assoc list, but the code may be less-effectively written.