There seems to be a endless loop error with the SelectPreviousLayer if a selection has been saved in the Alpha Chanel of the image, the function always returns True.
I use this part of code to go to the bottom layer and iterate every layer up.
I have tried with SelectNextLayer there is no such a problem.
And if no selection is saved in the Alpha Chanel, the function works well.
Code: Select all
FoundLayer = True
while FoundLayer == True:
FoundLayer = App.Do( Environment, 'SelectPreviousLayer', {
'GeneralSettings': {
'ExecutionMode': App.Constants.ExecutionMode.Silent,
'AutoActionMode': App.Constants.AutoActionMode.Match,
'Version': ((19,0,0),1)
}
})
