04-04-2023, 03:30 AM
Hi Ofnuts, I'm confused by this line of your suggested code:
I get that it makes a copy of a list but could it just be:
I thought the ‘layers’ attribute of an image or layer group builds a new Python list and copies into it the IDs of the layers so that gives the plugin it's own private list anyway?
(04-03-2023, 02:41 PM)Ofnuts Wrote:Code:
layers=image.layers[:] # Make a copy of the list
I get that it makes a copy of a list but could it just be:
Code:
layers=image.layers
I thought the ‘layers’ attribute of an image or layer group builds a new Python list and copies into it the IDs of the layers so that gives the plugin it's own private list anyway?