Getting this error:
File: C:\Program Files\paint.net\Effects\ScriptLab.dll
Name: pyrochild.effects.scriptlab.ScriptLab
Version: 4.0.5146.23014
Author: Zach Walker, a.k.a. pyrochild
Copyright: Copyright © 2007-2014 Zach Walker
Website: http://forums.getpaint.net/index.php?showtopic=7291
Full error message: PaintDotNet.WorkerThreadException: Worker thread threw an exception ---> System.InvalidOperationException: Operation is not valid due to the current state of the object.
at PaintDotNet.ControlExtensions.QueueUpdate(Control control) in d:\src\pdn\paintdotnet\src\Core\ControlExtensions.cs:line 67
at PaintDotNet.Effects.LevelsEffectConfigDialog.InitializeComponent() in d:\src\pdn\paintdotnet\src\Effects\LevelsEffectConfigDialog.cs:line 432
at PaintDotNet.Effects.LevelsEffectConfigDialog..ctor() in d:\src\pdn\paintdotnet\src\Effects\LevelsEffectConfigDialog.cs:line 66
at PaintDotNet.Effects.LevelsEffect.CreateConfigDialog() in d:\src\pdn\paintdotnet\src\Effects\LevelsEffect.cs:line 20
at pyrochild.effects.scriptlab.ScriptLab.Render(EffectConfigToken parameters, RenderArgs dstArgs, RenderArgs srcArgs, Rectangle[] rois, Int32 startIndex, Int32 length)
at PaintDotNet.Effects.BackgroundEffectRenderer.RenderWithClipMask(Effect effect, EffectConfigToken token, RenderArgs dstArgs, RenderArgs srcArgs, Rectangle[] rois, IRenderer`1 clipMaskRenderer) in d:\src\pdn\paintdotnet\src\PaintDotNet\Effects\BackgroundEffectRenderer.cs:line 163
at PaintDotNet.Effects.BackgroundEffectRenderer.RendererContext.RenderTile(EffectConfigToken token, Int32 tileIndex) in d:\src\pdn\paintdotnet\src\PaintDotNet\Effects\BackgroundEffectRenderer.cs:line 143
at PaintDotNet.Effects.BackgroundEffectRenderer.RendererContext.RenderNextTile(EffectConfigToken token) in d:\src\pdn\paintdotnet\src\PaintDotNet\Effects\BackgroundEffectRenderer.cs:line 135
at PaintDotNet.Effects.BackgroundEffectRenderer.ThreadFunction() in d:\src\pdn\paintdotnet\src\PaintDotNet\Effects\BackgroundEffectRenderer.cs:line 233
--- End of inner exception stack trace ---
at PaintDotNet.Effects.BackgroundEffectRenderer.DrainExceptions() in d:\src\pdn\paintdotnet\src\PaintDotNet\Effects\BackgroundEffectRenderer.cs:line 431
at PaintDotNet.Menus.EffectMenuBase.DoEffect(Effect effect, EffectConfigToken token, PdnRegion selectedRegion, PdnRegion regionToRender, IRenderer`1 clipMaskRenderer, Surface originalSurface, Exception& exception) in d:\src\pdn\paintdotnet\src\PaintDotNet\Menus\EffectMenuBase.cs:line 1527
I am first adding an 'Invert Colors' step and then a 'Levels' step.
I'm on Windows 10.