<NME> get-opacity.cocoascript
<BEF> var getOpacity = function(layer) {
	var opacity = 1
	if (![layer isVisible]) { return 0 }
	opacity = [[[layer style] contextSettings] opacity]
	return opacity.toFixed(1)
}
	
	return opacity.toFixed(1)
}
<MSG> Refactored active conditions

- small refactoring changes
- bg fix

<DFF> @@ -2,5 +2,6 @@ var getOpacity = function(layer) {
 	var opacity = 1
 	if (![layer isVisible]) { return 0 }
 	opacity = [[[layer style] contextSettings] opacity]
+	if (opacity == 1) { return 1 }
 	return opacity.toFixed(1)
 }
\ No newline at end of file

Refactored active conditions