Rick Brewster

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

Recommended Posts

You have to place the extension methods in a static, non-nested class. That's not possible with CodeLab.  Technically it could be, but it would "break" older versions of CodeLab.

Share this post


Link to post
Share on other sites
On 1/13/2018 at 10:14 AM, TrevorOutlaw said:

Is there a way to quickly preview the dialog without having to publish, move the effect to appropriate location, and run PDN to see if it works?

We got this working tonight.

You'll be able to run the script with a fully functional UI, directly from within CodeLab, without building a dll file and installing it.

preview-dialog.png

  • Like 2
  • Upvote 4

Share this post


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

Hey! How about that!?

 

That's awesome, man.  Thanks!

 

Yeah, it was low on his list of priorities... but it was high on mine.  So, I started working on it and he couldn't resist finishing it. :D

 

Share this post


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

 

Yeah, it was low on his list of priorities... but it was high on mine.  So, I started working on it and he couldn't resist finishing it. :D

 

 

Regardless, I'm glad that you two worked on it.  I am a much more visual-orientated person, which is why coding is difficult for me.  I can see the solution in my head, but to actually translate that to something useful, LOL, nope.

 

For example, in the screenshot by @toe_head2001, I would want to know the exact code behind the radio button, the exact code behind the color wheel, so forth, and while I can make out how it work-ish, I still struggle to put it all together.  Logic has never been my strong suit.

Share this post


Link to post
Share on other sites

CodeLab 3.1 Released

This is only for Paint.NET 4.0.21+!

 

Big update today...

 

Changes:

▪ Object disposal in "File > New" Templates. (BoltBait)
Create Work Surface in "File > New" Templates. (BoltBait)
▪ View Full Source without having to build a DLL file. "View Source" changed from check box to button on the Build to DLL screen. (BoltBait)
▪ Support for NestedTypes to the 'Intelligent Assistance' features. (toe_head2001)
▪ User Interface controls can now be previewed while in the UI Designer. (BoltBait & toe_head2001)
▪ The script can now be run with a fully functional UI, while still in CodeLab. Building a DLL file is not necessary to see how your final effect will look. (Does not include Help.) (BoltBait & toe_head2001)
▪ Bug Fix: reported issues with 'Format Document' (thanks, xod). (toe_head2001)

 

Grab the CodeLab DLL here:

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

 

UIPreview.png

 

WRKSurface.png

  • Like 2
  • Upvote 3

Share this post


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

▪ The script can now be run with a fully functional UI, while still in CodeLab. Building a DLL file is not necessary to see how your final effect will look.

 

Hey Bolt, does that mean we can change sliders (of UI) to change values in editor dynamically while working in codelab?

 

EDIT: Once I reach home I will test that.

Edited by Pratyush

Share this post


Link to post
Share on other sites
2 minutes ago, Pratyush said:
20 minutes ago, BoltBait said:

▪ The script can now be run with a fully functional UI, while still in CodeLab. Building a DLL file is not necessary to see how your final effect will look.

 

Hey Bolt, does that mean we can change sliders (of UI) to change values in editor dynamically while working in codelab?

 

When running CodeLab, you can press Ctrl+P (File > Preview) to preview your effect including the UI you have designed.

 

During the preview, you can slide around your sliders, change your colorwheel, etc. and you'll see the results immediately just like having your effect installed.

 

HOWEVER,  once you click OK on your effect, it reverts back to how it is in the code editor.

Share this post


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

 

When running CodeLab, you can press Ctrl+P (File > Preview) to preview your effect including the UI you have designed.

 

During the preview, you can slide around your sliders, change your colorwheel, etc. and you'll see the results immediately just like having your effect installed.

 

HOWEVER,  once you click OK on your effect, it reverts back to how it is in the code editor.

 

Good , that it reverts back to how it is in the code editor once preview is closed. It would be very annoying if set values changes in editor to anything arbitrary after running previews. 

 

But one can find it useful if there is an seperate option in file menu (or whichever menu indentation option is)  to use functional UI to set or change value  variable in Editor.

Edited by Pratyush

Share this post


Link to post
Share on other sites
1 minute ago, Pratyush said:

But one can find it useful if there is an seperate option in file menu (or whichever menu indentation option is)  to use functional UI to set or change value  variable in Editor.

 

Not going to happen.  Sorry.

Share this post


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

But one can find it useful if there is an seperate option in file menu (or whichever menu indentation option is)  to use functional UI to set or change value  variable in Editor.

Let's see, which of these two is faster and easier?

A -  Typing a number into the editor.

B -  Opening the File menu, clicking a menu item, moving a UI control around to adjust a value, clicking OK.

 

I fail to see how one could find option B to be useful. More work and more time consuming.

Share this post


Link to post
Share on other sites
32 minutes ago, TrevorOutlaw said:

 

Any chance to add just the DLL?  The installer doesn't work for the Store version.

 

CodeLab is not designed for the store version. 

Share this post


Link to post
Share on other sites

CodeLab 3.2 Released

This is only for Paint.NET 4.0.21+!

 

Tiny update today...

 

Changes:

▪ Fixed a crash in the Preview UI screen and the Preview Effect screen. (toe_head2001)

 

If you tried to preview a UI that contained a Double Vector control [+] it would crash paint.net.  Sorry about that!

 

I found the bug when I was rewriting CodeLab Tutorial #7:

https://forums.getpaint.net/topic/32107-how-to-write-an-effect-plugin-part-7-extra-surface/

 

 

  • Upvote 1

Share this post


Link to post
Share on other sites

The preview feature is one of the best CodeLab improvements ever! I've long longed for the ability to alter the control values within CodeLab without editing them by hand (and remembering to change them back before saving the source code). CodeLab has improved by leaps and bounds in the last week.

Share this post


Link to post
Share on other sites

From here 

On 3/11/2006 at 6:58 AM, Rick Brewster said:

Please note that this is experimental technology and is not meant to provide a robust development environment.

to here.

How far codelab has come. May be someone can review it. 

 

EDIT: *May be someone can review Codelab as a tool 

Edited by Pratyush

Share this post


Link to post
Share on other sites
On 1/18/2018 at 12:45 AM, Pratyush said:

How far codelab has come. May be someone can review it. 

 

If you want to see how far CodeLab has come, just read this page:

 

http://boltbait.com/pdn/CodeLab/History

 

If you want to see what the first version looked like, there are screenshots of it in the first post of this thread.

 

 

Share this post


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

Let's see, which of these two is faster and easier?

A -  Typing a number into the editor.

B -  Opening the File menu, clicking a menu item, moving a UI control around to adjust a value, clicking OK.

 

I fail to see how one could find option B to be useful. More work and more time consuming.

 

Yeah. I agree that's stupid. Seriously What was I thinking that time.

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.