Sign in to follow this  
Taco1337

How to make plugin?

Recommended Posts

Boltbait, I read in the first line of your page that "Most Paint.NET plugins are written in C#". So, I assume it is possible to write it in other languages (C++ flashes in my mind). But here the author's question reapears: "But how??"

Could you please post one more link with help in this direction? :roll:

Thanks!

Share this post


Link to post
Share on other sites

If you can code in C++, just bite the bullet and learn C#. The changes are not that great.

There are other plugins written in VB.NET... which I don't recomend. However, if you must, use this template: viewtopic.php?f=27&t=23004

Share this post


Link to post
Share on other sites

No. Paint.NET doesn't use LUA.

I think there's a LUA for .NET compiler, but ultimately I don't think that's what you're thinking of.

Share this post


Link to post
Share on other sites

Well, I have a question: Is it possible to create plug-ins with Microsoft's Visual C# 2008 Express Edition (It does just support .NET 3.5) ?

Edited by VatherLokus

Share this post


Link to post
Share on other sites

Well, I have a question: Is it possible to create plug-ins with Microsoft's Visual C# 2008 Express Edition (It does just support .NET 3.5) ?

VS 2010 express is available, if you want .Net 4.

http://www.microsoft.com/express/Downloads/

For what paint.net version needs plugins to be using what framework version, i don't know.

I'm running the latest release (not beta) and my plugins are targeting .Net 3.5 and they work.

Share this post


Link to post
Share on other sites

The way you gave an example for the plugin script is just like maths.

I just learned this in school: your help page said that in the x,y loop......... this is kinda like bars i did this in school once. x= x axis and y = y axis

Share this post


Link to post
Share on other sites

Hey there, I have written my first plugin yesterday, and I have to say it is quite easy, Within minutes I had a working plugin

 

I use Visual Basic 2010 Express Edition, and in C#/VB all you need to do is create a class library and do some simple things from there :)

Share this post


Link to post
Share on other sites

I don't understand how you are supposed to iterate? 

 

Once you have already made a dll, you can't save your updated plugin, because paint.net must be open to be using this, and the file is locked. So, every single time, you have to make a new name for the dll, close paint.net, and copy it??

Share this post


Link to post
Share on other sites

The next version of CodeLab will fix this issue. It will be out soon.

Share this post


Link to post
Share on other sites

The next version of CodeLab will fix this issue. It will be out soon.

Great! A few additional minor problems I noticed: 

 

In the UI designer editing the 'max' field screws up the value in the 'default' field. 

The program shouldn't warn that the .cs file already exists when you save it if it knows that is the file you are editing.

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.

Sign in to follow this