jchunn Posted February 11, 2008 Posted February 11, 2008 This plugin is a part of the "Jesse Chunn Plugin Pack" and can be downloaded HERE Once installed, "Bricks" will show up in the "Render" submenu. Here are some examples: This image uses "Bricks" to create texture. Here is a tutorial to create a brick wall. (link to old forum removed - please use search: http://searchpaint.net/ ) This effect is a part of Jesse Chunn Plugin Pack located at: Jesse Chunn Plugin Pack All comments welcome. Regards, Jesse Chunn. Quote Total hack.
barkbark00 Posted February 11, 2008 Posted February 11, 2008 Nice job on the new one. Was it made in VB.NET as well? Quote Take responsibility for your own intelligence. 😉 -Rick Brewster
MadJik Posted February 11, 2008 Posted February 11, 2008 Nice one, i like it ! But I've got 2x Bricks... in my menu! They look same! Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal
DRILL Posted February 11, 2008 Posted February 11, 2008 I've got 2 bricks and 2 varicose and i've got a error with my version(3.20) File: C:\Program Files\Paint.NET\Effects\jchunn.dll Effect Name: PDNPI_IndirectUI.Bricks Full error message: System.InvalidCastException: Specified cast is not valid. at PaintDotNet.PropertySystem.Property`1.ValidateNewValue(Object newValue) at PaintDotNet.PropertySystem.Property.SetValueCore(Object value) at PaintDotNet.PropertySystem.Property.set_Value(Object value) at PaintDotNet.IndirectUI.ControlInfo.SetPropertyControlValue(Object propertyName, Object controlPropertyName, Object propertyValue) at PDNPI_IndirectUI.Bricks.OnCreateConfigUI(PropertyCollection props) at PaintDotNet.Effects.PropertyBasedEffect.CreateConfigDialog() at PaintDotNet.Menus.EffectMenuBase.RunEffect(Type effectType) Quote
jchunn Posted February 11, 2008 Author Posted February 11, 2008 Nice job on the new one. Was it made in VB.NET as well? Thanks, and yes. I just added the new plugin to the existing code (added a class). I've got 2 bricks and 2 varicose and i've got a error with my version(3.20) But I've got 2x Bricks... in my menu! Not sure why you have 2 bricks. I changed the filename of the dll, so it makes sense that you would have 2 varicose (the old one and the one in this dll)... just delete the old varicose.dll and you should be fine. I'll try not to change file names in the future to avoid that problem. If you delete varicose.dll and still see 2 bricks OR 2 varicose, let me know. As for your error, I am running 3.22, so maybe there is a compatibility problem... not sure, but it seems to work fine for me. I am checking all types, and the input controls (I assume) will not allow invalid input. Quote Total hack.
MadJik Posted February 11, 2008 Posted February 11, 2008 Never download Bricks.dll ! Yes, varicose.dll is removed. And yes 2xBricks and 2xVaricode in the menu... Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal
barkbark00 Posted February 11, 2008 Posted February 11, 2008 What happens if you switch to the english version? Quote Take responsibility for your own intelligence. 😉 -Rick Brewster
MadJik Posted February 11, 2008 Posted February 11, 2008 What happens if you switch to the english version? English or French, still doubles... Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal
Leif Posted February 11, 2008 Posted February 11, 2008 I get the double entry too. Not a good thing when we once more have so many other plug-ins. :wink: But otherwise a pretty cool plug-in. Quote My DA: http://leif-j.deviantart.com/ -------------- Some people seek justice so persistent, that they will do great injustice themselves.
Dalton Posted February 11, 2008 Posted February 11, 2008 I've got 2 bricks and 2 varicose and i've got a error with my version(3.20) File: C:\Program Files\Paint.NET\Effects\jchunn.dll Effect Name: PDNPI_IndirectUI.Bricks Full error message: System.InvalidCastException: Specified cast is not valid. at PaintDotNet.PropertySystem.Property`1.ValidateNewValue(Object newValue) at PaintDotNet.PropertySystem.Property.SetValueCore(Object value) at PaintDotNet.PropertySystem.Property.set_Value(Object value) at PaintDotNet.IndirectUI.ControlInfo.SetPropertyControlValue(Object propertyName, Object controlPropertyName, Object propertyValue) at PDNPI_IndirectUI.Bricks.OnCreateConfigUI(PropertyCollection props) at PaintDotNet.Effects.PropertyBasedEffect.CreateConfigDialog() at PaintDotNet.Menus.EffectMenuBase.RunEffect(Type effectType) Aren't you supposed to have the latest version? ========================= I'll try this plugin in a few! Quote MyBB Tutorials, check out my site.
ncfan51 Posted February 12, 2008 Posted February 12, 2008 Screenshots? Quote +_+_+_+_+_+_+_+_+_+_+_+ I am a disco dancer. +_+_+_+_+_+_+_+_+_+_+_+
Rick Brewster Posted February 12, 2008 Posted February 12, 2008 I've got 2 bricks and 2 varicose and i've got a error with my version(3.20) File: C:\Program Files\Paint.NET\Effects\jchunn.dll Effect Name: PDNPI_IndirectUI.Bricks Full error message: System.InvalidCastException: Specified cast is not valid. at PaintDotNet.PropertySystem.Property`1.ValidateNewValue(Object newValue) at PaintDotNet.PropertySystem.Property.SetValueCore(Object value) at PaintDotNet.PropertySystem.Property.set_Value(Object value) at PaintDotNet.IndirectUI.ControlInfo.SetPropertyControlValue(Object propertyName, Object controlPropertyName, Object propertyValue) at PDNPI_IndirectUI.Bricks.OnCreateConfigUI(PropertyCollection props) at PaintDotNet.Effects.PropertyBasedEffect.CreateConfigDialog() at PaintDotNet.Menus.EffectMenuBase.RunEffect(Type effectType) Looks like jchunn is probably using PdnResources to load some text. If so, this plugin will not work in future versions of Paint.NET. Plugins must not use PdnResources. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html
jchunn Posted February 13, 2008 Author Posted February 13, 2008 Looks like jchunn is probably using PdnResources to load some text. If so, this plugin will not work in future versions of Paint.NET. Plugins must not use PdnResources. No, I am not. The plugin is not doing anything out of the ordinary. I am at work, so I can't post the latest source, but I am not doing anything differently than what is in this earlier version, other than re-arranging some of the effect logic for the "bricks" effect: http://paintdotnet.forumer.com/download/file.php?id=1193 That is vb.net, but it is very simple and easy to follow. Certainly, a quick look will make it obvious that (unless I am completely missing something) I am not doing anything fancy with resources. I am simply modifying a few pixels. Very straightforward stuff. It is possible that I have a reference to the resources dll, but if I do, it was simply a matter of setting the reference, and never using it. If you (Rick) want to just quickly open the source and take a quick look (even in notepad if you didn't install vb) you should be able to verify that I am not doing anything out of the ordinary. If I am, let me know what it is and I'll go back to the drawing board, but this is pretty basic stuff, so I'd doubt it. The only thing I "am" doing that is different from the other examples I've seen posted is that I am using the "my.resources" namespace, instead of embedding the resources the way others are doing it in C#, strictly for the effect icon... but that shouldn't matter since I am still just returning a bitmap. Any feedback would be appreciated. Regards. Quote Total hack.
Leif Posted February 13, 2008 Posted February 13, 2008 I hope this problem can bee solved. I just discovered an interesting way of using this plug-in. Posted in the pickthorium, and on my DA. Quote My DA: http://leif-j.deviantart.com/ -------------- Some people seek justice so persistent, that they will do great injustice themselves.
jchunn Posted February 13, 2008 Author Posted February 13, 2008 If you are getting duplicates (more than one copy of bricks or varicose in your effects menu), please try the following and let me know if this fixes the problem. 1. Close all instances of PDN. 2. Go to "c:\program files\Paint.Net\effects\" (or whereever your "effects" folder is). 3. Delete varicose.dll AND jchunn.dll. 4. Run PDN. 5. Verify that you do not have any of the following effects in the effect menu: effects->object->Varicose effects->render->Varicose effects->render->Bricks If you have any of those, well... you have something seriously wrong with your installation, or you didn't "really" delete the files, or your effects folder is not where you think it is, or something else has gone wacky with your computer. 7. Close PDN again. 6. Re-download "jchunn.zip". 7. Unzip "jchunn.zip" and verify that it contains ONLY jchunn.dll. 8. Copy ONLY "jchunn.dll" to your effects folder. 9. Run PDN. 10. Verify that you have the following effects: One copy of effects->render->Varicose One copy of effects->render->Bricks NO copy of effects->object->Varicose If you do all that, and still have two copies of either bricks or varicose (or both), please post here again... that means either something is wrong with the plugin, something is wrong with PDN, or something is wrong with your installation... and I'll need to try and figure out which one it is. Quote Total hack.
MadJik Posted February 13, 2008 Posted February 13, 2008 It's ok for me now. Thanks. Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal
Leif Posted February 13, 2008 Posted February 13, 2008 Solved the problem for me. Quote My DA: http://leif-j.deviantart.com/ -------------- Some people seek justice so persistent, that they will do great injustice themselves.
jchunn Posted February 13, 2008 Author Posted February 13, 2008 AWESOME... thanks for the quick reply guys. Quote Total hack.
topezia Posted February 13, 2008 Posted February 13, 2008 And no more doubles for me too! Thanks for the effects! Quote
Rick Brewster Posted February 14, 2008 Posted February 14, 2008 No, I am not. The plugin is not doing anything out of the ordinary. I am at work, so I can't post the latest source, but I am not doing anything differently than what is in this earlier version, other than re-arranging some of the effect logic for the "bricks" effect: http://paintdotnet.forumer.com/download/file.php?id=1193 That is vb.net, but it is very simple and easy to follow. Certainly, a quick look will make it obvious that (unless I am completely missing something) I am not doing anything fancy with resources. I am simply modifying a few pixels. Very straightforward stuff. It is possible that I have a reference to the resources dll, but if I do, it was simply a matter of setting the reference, and never using it. If you (Rick) want to just quickly open the source and take a quick look (even in notepad if you didn't install vb) you should be able to verify that I am not doing anything out of the ordinary. If I am, let me know what it is and I'll go back to the drawing board, but this is pretty basic stuff, so I'd doubt it. The only thing I "am" doing that is different from the other examples I've seen posted is that I am using the "my.resources" namespace, instead of embedding the resources the way others are doing it in C#, strictly for the effect icon... but that shouldn't matter since I am still just returning a bitmap. Any feedback would be appreciated. Regards. Doesn't look like a resource problem, like you say. I was simply listing the likeliest coding mistake that I've seen cause that to happen in the past. The only thing I can nail it down to is the 6 calls to SetPropertyControlValue where you aren't sending strings: configUI.SetPropertyControlValue(Settings.Width, ControlInfoPropertyNames.SliderLargeChange, 10.0#) Is "10.0#" the VB syntax for a System.Double or a System.Single (aka double or float, at least in C#) ? In either case, those properties need a System.Double and we've been seeing some cases where the .NET Runtime is being cranky about value unboxing-then-casting where it wasn't before, or where we aren't expecting it to be. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html
jchunn Posted February 14, 2008 Author Posted February 14, 2008 The only thing I can nail it down to is the 6 calls to SetPropertyControlValue where you aren't sending strings: configUI.SetPropertyControlValue(Settings.Width, ControlInfoPropertyNames.SliderLargeChange, 10.0#) Is "10.0#" the VB syntax for a System.Double or a System.Single (aka double or float, at least in C#) ? In either case, those properties need a System.Double and we've been seeing some cases where the .NET Runtime is being cranky about value unboxing-then-casting where it wasn't before, or where we aren't expecting it to be. From the vb.net documentation: Appending the identifier type character # to any identifier forces it to Double.The equivalent .NET data type is System.Double. I could change the code to be more explicit (ctype(xxx, system.double)), but it should work the way it is. I'll change it for the next release, just in case. The stack trace seems to agree with what you are saying, but I don't know why it would work for me and others most of the time but then fail "occasionally". If anyone else experiences these errors (or any errors) it would be very helpful if I had another stack trace, just to verify this was not related to people having two versions installed at the same time, somehow confusing the runtime (.Net) or the host (PDN). Thanks for following up Rick. Quote Total hack.
ATL Art man Posted February 17, 2008 Posted February 17, 2008 :? So what can this plugin do? can anybody post a sample pic? Quote
Curmudgeon Posted February 17, 2008 Posted February 17, 2008 They made a sample of it in the Tutorials section, plus a few have used it in the pictorium section. Here's a sample of what can be made using it. Quote
Kreeos Posted February 25, 2008 Posted February 25, 2008 I click the link to download it and it says the attachment doesn't exist any more. Any one else having this problem? Quote Deviant Art
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.