larsen67 wrote:Try getting the name of your active layer… You will see it's the one you wanted it's just a lazy UI that does not redraw as you would expect… Even app.redraw() will not refresh this for you…
not sure I understand what you're saying?
get index of selected layer
get index of selected layer
still not sure what you meant by lazy UI hah, but decided to add the redraw(); method and it seems to fix it? really strange. why do you have to apply this in order to set an active layer? seems like the UI would do it sometimes, and other times it didn't. but now it is consistant. it's the worst when I am doing several things in succession, if it is only selecting active layer and that is all script does, it seems to work fine. very strange.