Rick Brewster

CodeLab v5.2 (for advanced users) Released January 31, 2020

Recommended Posts

If you create a pan slider:

 

PanSlider.png

 

It creates it like this:

 

PanSliderControl Amount4 = Pair.Create(0); // Slider 1 Description

Because of the default.

 

If you then...

 

press Ctrl+I to go into the interface designer again and press Enter, it will update the script and it will work fine.

 

EDIT: I have fixed this for the next release.  In the mean time, just do this :LayersMoveLayerUp:

 

Share this post


Link to post
Share on other sites
11 hours ago, toe_head2001 said:

 

I wish you had report the issue when you first encountered it, instead of waiting until after v5.1 was released.

I'll bisect the revision history, and find out how this broke.  :(

Thank you for reporting it though.

 

I've installed 4.3 - 5.0 - 5.1

I think I didn't meet same error before.

 

BTW, in CodeLab 5.1, after insert PanSliderControl, following code is generated.

 

PanSliderControl Amount4 = Pair.Create(0); // Slider 3 Description

 

As you know, that code should be fixed to following:

 

PanSliderControl Amount4 = Pair.Create(0.000, 0.000); // Slider 3 Description

 

And, after fixing it, that code works!

 

Share this post


Link to post
Share on other sites
11 hours ago, BoltBait said:

If you create a pan slider:

 

PanSlider.png

 

It creates it like this:

 


PanSliderControl Amount4 = Pair.Create(0); // Slider 1 Description

Because of the default.

 

If you then...

 

press Ctrl+I to go into the interface designer again and press Enter, it will update the script and it will work fine.

 

EDIT: I have fixed this for the next release.  In the mean time, just do this :LayersMoveLayerUp:

 

 

Oh, Thank you!

After posting my last reply, I saw your answer.

 

Thank you for your work and kind help.

 

 

Share this post


Link to post
Share on other sites

CodeLab 5.2 Released

This is only for Paint.NET 4.2.9+!

 

Small (but important) update today...

 

Changes:
▪ Fix Pan Slider Default (BoltBait)

▪ Improved File New Template code (BoltBait)

▪ Updated default script for Paint.NET v4.2.9 (BoltBait)

▪ Various code cleanups (toe_head2001)


Grab the CodeLab DLL here:

 

https://www.boltbait.com/pdn/CodeLab/

  • Upvote 3

Share this post


Link to post
Share on other sites

CodeLab 5.2 in Russian

 

You can find the new version of CodeLab in Russian here.

Вы можете найти новую версию CodeLab на русском языке здесь.

Share this post


Link to post
Share on other sites
2 minutes ago, Reptillian said:

So, cntrl+e for debug?

 

That currently toggles the Error List.

I hope you aren't you saying you want Ctrl+E to toggle between the Error List and the Debug Output?  That sounds obnoxious, to be honest.

Share this post


Link to post
Share on other sites
15 hours ago, Reptillian said:

So, cntrl+e for debug?

 

I would suggest Ctrl+Alt+D.

 

This would be similar to the Ctrl+Alt+O shortcut Visual Studio uses for the output window.

 

The error list shortcut could be changed to Ctrl+Alt+E for consistency, which would free up Ctrl+E for some other feature.

Share this post


Link to post
Share on other sites
On 2/22/2020 at 7:34 PM, null54 said:

I would suggest Ctrl+Alt+D.

 

This would be similar to the Ctrl+Alt+O shortcut Visual Studio uses for the output window.

 

I'd rather it match Visual Studio.  So, Ctrl+Alt+O would be the better choice in my opinion.

  • Upvote 1

Share this post


Link to post
Share on other sites

Возможно ли сделать математические операции над каналами изображения, взяв информацию из каналов другого изображения?

Share this post


Link to post
Share on other sites
18 minutes ago, Erdos said:

Is it possible to do mathematical operations on image channels by taking information from the channels of another image?

 

Yes. But, only if that other image is in a file or on the clipboard.

 

In a CodeLab script, you do not have access to other open images or even other layers of your current image.

Share this post


Link to post
Share on other sites
16 minutes ago, BoltBait said:

 

Yes. But, only if that other image is in a file or on the clipboard.

 

In a CodeLab script, you do not have access to other open images or even other layers of your current image.

Да, это другое изображение, его можно даже не открывать в Paint.NET

Не подскажите, как реализовать такую задумку? В скриптах я новичок, умею проделать математические операции над текущим изображением.

Share this post


Link to post
Share on other sites
44 minutes ago, Erdos said:

Да, это другое изображение, его можно даже не открывать в Paint.NET

Не подскажите, как реализовать такую задумку? В скриптах я новичок, умею проделать математические операции над текущим изображением.

 

Start here:

 

RussianUI.png

 

This will generate the script you will need to read an image from the clipboard.

 

In the inner loop of the Render function, the WRK surface will have your clipboard image and the SRC surface will have your original image that you are working on. The DST surface is where you need to put your final calculated pixels.

  • Upvote 1

Share this post


Link to post
Share on other sites
14 minutes ago, BoltBait said:

 

Start here:

 

RussianUI.png

 

This will generate the script you will need to read an image from the clipboard.

 

In the inner loop of the Render function, the WRK surface will have your clipboard image and the SRC surface will have your original image that you are working on. The DST surface is where you need to put your final calculated pixels.

Thanks! I will sort this out.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.