-
Posts
85 -
Joined
-
Last visited
-
Days Won
1
Content Type
Events
Profiles
Forums
Blogs
Gallery
Downloads
Posts posted by Foxxey
-
-
10 hours ago, Reptillian said:
I have just added a filter based on this plugin request -
Commit here - https://github.com/dtschump/gmic-community/commit/44bb00a351c9aa0a03c11cf104f3fb4c42d19f22
@Foxxey : If you have access to G'MIC-QT 2.9.1, you can test your plugin idea with this filter since it is exactly what you want.
thank you very much!
-
So basically the plugin should work just like the gravity plugin by MadJik but the gravity should be concentrated at one point (see pictures, i tried to recreate it manually). Please code the plugin with Codelab and send me the script, I want to use it for my other plugin. imma credit you. The plugin should also work for non circular shapes.
-
3 hours ago, toe_head2001 said:
The title is misleading. I thought this was going to generate a graphical waveform representation from a audio file. This have nothing to do with sound.
I would recommend changing the name to 'Random Waveform', or something like that.
its in the description though.
-
@Eli'minValue' cannot be greater than maxValue
-
ok i look into it
-
37 minutes ago, toe_head2001 said:
You really need to provide a better description when publishing plugins. Some example images, and a UI screenshot is good too.
Where did you get this code from? It looks very old; especially the ColorBgra casts. This code won't even compile with Paint.NET v4.2.11+
Rectangle selection = EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt(); int CenterX = ((selection.Right - selection.Left) / 2)+selection.Left; int CenterY = ((selection.Bottom - selection.Top) / 2)+selection.Top; ColorBgra PrimaryColor = (ColorBgra)EnvironmentParameters.PrimaryColor; ColorBgra SecondaryColor = (ColorBgra)EnvironmentParameters.SecondaryColor; int BrushWidth = (int)EnvironmentParameters.BrushWidth;
Why are your X,Y loops using
selection
instead ofrect
? That can cause serious performance issues.for (int y = selection.Top; y < selection.Bottom; y++) { if (IsCancelRequested) return; int rnd = 0; if (onlyy) rnd = RandomNumber.Next(Min,Max); for (int x = selection.Left; x < selection.Right; x++) {
So i tried doing the same for my plugin SoundWave and its bugged now. its generating a new random wave height for each rect.
-
15 minutes ago, toe_head2001 said:
There's a solution for that. Please use the 'Legacy ROI' option, and switch from
selection
back torect
.Use the code that CodeLab gives you. The example on BoltBait's site are a bit outdated.
Here's the newer snippet, as displayed by CodeLab:
Rectangle selection = EnvironmentParameters.SelectionBounds; int CenterX = ((selection.Right - selection.Left) / 2) + selection.Left; int CenterY = ((selection.Bottom - selection.Top) / 2) + selection.Top; ColorBgra PrimaryColor = EnvironmentParameters.PrimaryColor; ColorBgra SecondaryColor = EnvironmentParameters.SecondaryColor; int BrushWidth = (int)EnvironmentParameters.BrushWidth;
i just edited the code. it should be fine now.
-
1 minute ago, toe_head2001 said:
There's a solution for that. Please use the 'Legacy ROI' option, and switch from
selection
back torect
.Use the code that CodeLab gives you. The example on BoltBait's site are a bit outdated.
Here's the newer snippet, as displayed by CodeLab:
Rectangle selection = EnvironmentParameters.SelectionBounds; int CenterX = ((selection.Right - selection.Left) / 2) + selection.Left; int CenterY = ((selection.Bottom - selection.Top) / 2) + selection.Top; ColorBgra PrimaryColor = EnvironmentParameters.PrimaryColor; ColorBgra SecondaryColor = EnvironmentParameters.SecondaryColor; int BrushWidth = (int)EnvironmentParameters.BrushWidth;
ok tyvm
-
9 minutes ago, toe_head2001 said:
You really need to provide a better description when publishing plugins. Some example images, and a UI screenshot is good too.
Where did you get this code from? It looks very old; especially the ColorBgra casts. This code won't even compile with Paint.NET v4.2.11+
Rectangle selection = EnvironmentParameters.GetSelection(src.Bounds).GetBoundsInt(); int CenterX = ((selection.Right - selection.Left) / 2)+selection.Left; int CenterY = ((selection.Bottom - selection.Top) / 2)+selection.Top; ColorBgra PrimaryColor = (ColorBgra)EnvironmentParameters.PrimaryColor; ColorBgra SecondaryColor = (ColorBgra)EnvironmentParameters.SecondaryColor; int BrushWidth = (int)EnvironmentParameters.BrushWidth;
Why are your X,Y loops using
selection
instead ofrect
? That can cause serious performance issues.for (int y = selection.Top; y < selection.Bottom; y++) { if (IsCancelRequested) return; int rnd = 0; if (onlyy) rnd = RandomNumber.Next(Min,Max); for (int x = selection.Left; x < selection.Right; x++) {
I didnt use the rect cause it causes rectangle aborts in the random noice thingy. I use the code from BoltBait's website. I am new to C# and coding plugins. So what exactly should i change to what?
-
-
Its a simple plugin that generates, well, a circle! Also it has some extra features 😉
To install it extract the zip file and execute the .bat file. To install it manually drag and drop the .dll file into your Effects folder.
Location: Effects>Render
- 1
- 2
-
Just now, Djisves said:
Wow! This is really cool looking!
-
I know I am preeeeetty late but where to get the codelab file for the circle text plugin?? 🙃
-
So basically this simple plugin generates a random sound wave. Thats it!
To install it extract the zip file and execute the .bat file. To install it manually drag and drop the .dll file into your Effects folder.
Location: Effects>Render
Example: https://prnt.sc/sd0gr3
- 2
- 1
-
12 hours ago, BoltBait said:
ty
-
How to create random numbers in CodeLab?
-
13 minutes ago, toe_head2001 said:
Also, you're invoking the built-in Emboss Effect incorrectly, which can lead to performance issues. Please use the templates in File -> New for correct code.
ok ty
-
4 minutes ago, toe_head2001 said:
If you rename your file to 'EmbossPlus.cs', the errors will go away.
Thank you so much!
-
So basically i coded my first plugin with CodeLab. There were no errors and the "Preview Effect" was working flawless. But then i wanted to build the dll file and it showed some weird error messages.
-
Hello! Where to get the code for this plugin?
-
Reptorian's G'MIC Code Workshop
in Plugin Developer's Central
Posted
@Reptilliani tried to install ur plugin in G'MIC in Paint.net, but it didnt work. I am new to G'MIC. What did I do wrong?