Jump to content

ReMake

Members
  • Posts

    1,246
  • Joined

  • Last visited

  • Days Won

    44

Everything posted by ReMake

  1. How I converted all my effects for NET 5.0: 1. Run CodeLab 6.3 2. In the default script in the comment // Name: type the name of your plugin (f.e. MyEffect). 3. Save the script with this name. 4. Then File -> Build DLL -> Generate VS Solution. 5. Open MyEffect solution in VS 2019, then open MyEffect.cs. 6. Open your old MyEffect.cs in any text editor. 7. Move all the code blocks from the text editor sequentially to the new MyEffect.cs. 8. Delete unused references and dependencies. If necessary, fix the errors. 9. Your new project is ready. For me, this algorithm seemed to be the simplest solution for converting old projects into new ones. It takes a little time and requires minimal effort to fix old scripts. For many of my effects, it would be enough to build an effect in CodeLab, but all my effects have a UI in two languages, so I use VS.
  2. This is an update of the original and slightly forgotten Alpha Transform plugin by @DW-dev. See changelog below. This effect can be useful for creating an alpha mask of an image. Compatible with paint.net 4.3.2+ only Download from my PluginPack You can find it under Adjustments -> Alpha Transform This effect allows you to operate with the alpha value of a pixel based on an estimate of the maximum value of the R, G or B components (RGB color model) or its perceived brightness (YCbCr or YUV color model). The pixel brightness range is determined by two thresholds. Pixels with brightness less the lower limit get alpha set to 0 (fully transparent). Pixels with brightness more the upper limit get alpha set to 255 (fully opaque). Pixels with brightness in the range between the lower and upper limits get alpha set to a value between 0 and 255 depending on their brightness. Before: After: Color Model - a way to estimate the brightness of a pixel: RGB - by the maximum value of R, G, or B. YCbCr, YUV - by perceived pixel brightness. Set Alpha = 0 ... and Set Alpha = 255 ... is define the thresholds for changing the Alpha value. Invert Alpha values - switch between alpha and color. Replace RGB with Color - color selection: Source - without color replacement Primary / Secondary / Grayscale / Custom - colors that replace the source color. CodeLab Source Thanks to everyone who helped me create the interface of this effect. Changelog v1.3 (January 22, 2022) Added the Grayscale item to the color selection drop-down list. The icon has been changed (fixed). v1.2 (October 14, 2021) Added a drop-down list of color models. Changed behavior of Set Alpha... sliders(MinMax dependency). Added a color selection drop-down list. Changed the behavior of the Grayscale Alpha checkbox. v1.1 by @DW-dev (September 15, 2009) Initial release
  3. Updated Help in Japanese. Thanks to @Hira for the kindly provided translation of the Help text in Japanese.
  4. If this subforum was created, then now it would be possible to move the Shapes subforum to it, my thread 'Presets for Gradient Mapping' to the Effect Presets subforum, the thread 'Color Palettes go here' to the Palettes subforum, the thread 'Share Your Custom Paint.NET Brushes' to the Brushes subforum. Later, these subforums will gradually fill up. The Textures subforum can be left blank for now. I am sure that some members use patterns and textures in their works and they could share these patterns and texts. EDIT: When I said 'new subforum, for example, Associated Files - Publishing ONLY!' I meant Forum (translation difficulties).
  5. This topic is also my experience. I have acquired new information and new skills. Thanks.
  6. Yes, because the thread 'Presets for Gradient Mapping' is in the wrong place. I once searched for this thread myself via Find Content. It is for this reason that I suggested creating a new subforum.
  7. @MJW, you beat me to it while I was working with the translator.
  8. @midora, I take back my words. Yes, these two expressions are not equivalent. Your code works flawlessly. I looked it over carefully and fixed my code a bit. Now my code works too. Thank you for your efforts and your time spent.
  9. @midora thanks for the clarification. Unfortunately, this does not work, because your proposed version of writing the rule is equivalent to this: List<PropertyCollectionRule> propRules = new List<PropertyCollectionRule>() { new ReadOnlyBoundToBooleanRule(PropertyNames.Mode, PropertyNames.Gray, true), new ReadOnlyBoundToNameValuesRule(PropertyNames.CustomColor, true, (PropertyNames.Gray, false), (PropertyNames.Mode, ModeOptions.CustomColor)), }; The color wheel is still always active.
  10. Perhaps I am trying to achieve something unattainable, but in my opinion, the last change did not lead to a change in the behavior of the controls, which I described above in the first post. On the contrary, the Color Wheel is now always active regardless of the drop-down list item. Maybe I'm so stupid that I couldn't figure out the logic of Indirect UI rules. Can any of the developers give me an example of writing an IndirectUI rule that would allow the Color Wheel to be active if and only if the Custom item is selected in the drop-down list and the Gray checkbox is not checked?
  11. In 2017, I started the topic Presets for Gradient Mapping. Now I can't remember for what reason I posted it in the subforum 'Paint.NET Tutorials - Publishing ONLY!'. I also noticed that the topics Share Your Custom Paint.NET Brushes by @Simon Brown and Color Palettes go here by @usedHONDA are in the subforum 'Paint.NET Discussion and Questions'. It seems to me that this is not the right place to place custom files. So I have a question: is there a NEED to create in the forum Paint.NET a new subforum with the name, for example, Associated Files - Publishing ONLY! (or with a better name), where we could place custom palettes, brushes, textures, shapes, effect presets (for Gradient Mapping, Curves+, Shape 3D, etc.), etc. This subforum could have corresponding sections: Palettes, Brushes, Textures, Shapes (currently in Plugins - Publishing ONLY!), Effect Presets. What do you think about it?
  12. @MJW, thanks for the comment. I tried to apply ReadOnlyBoundToNameValuesRule: List<PropertyCollectionRule> propRules = new List<PropertyCollectionRule>(); propRules.Add(new ReadOnlyBoundToBooleanRule(PropertyNames.Mode, PropertyNames.Gray, false)); // propRules.Add(new ReadOnlyBoundToBooleanRule(PropertyNames.CustomColor, PropertyNames.Gray, false)); // propRules.Add(new ReadOnlyBoundToValueRule<object, StaticListChoiceProperty>(PropertyNames.CustomColor, PropertyNames.Mode, ModeOptions.Custom, true)); propRules.Add(new ReadOnlyBoundToNameValuesRule(PropertyNames.CustomColor, true, new TupleStruct<object, object>[] { new TupleStruct<object, object>(PropertyNames.Gray, false), new TupleStruct<object, object>(PropertyNames.Mode, ModeOptions.Custom) })); return new PropertyCollection(props, propRules); So far, this rule does not work for me. ReadOnlyBoundToNameValuesRule only works correctly with the Gray checkbox. The state of the CustomColor control is practically independent of the Mode drop-down list item. Probably the difficulties of language translation did not allow me to interpret your comment correctly. I have tried many options for writing the ReadOnlyBoundToNameValuesRule rule, but so far to no avail.
  13. The link works for me, however try an alternative: https://disk.yandex.by/d/snbQwoN2odrPBQ
  14. It is precisely because CodeLab cannot set two different dependencies for the same control that I am trying to solve this problem in VS. @MJW, thank you for your suggestions.
  15. @Red ochre, @otuncelli, thank you for the answer. I will try to figure it out, although it is somewhat difficult for me.
  16. It's a simple interface and a CodeLab script for it. Both controls (drop-down list and color wheel) active until the Grayscale checkbox is selected. This is easy to do in CodeLab. But I need the color wheel to be active only when the Custom item is selected in the drop-down list. The solution seems simple - add the rule IndirectUI 'ReadOnlyBoundToValueRule' in VS project. This works correctly until you check the Grayscale checkbox. If you have selected one of the first three items in the drop-down list, then after unchecking the Grayscale checkbox, the color wheel becomes active, although it should be active only when selecting the fourth item (Custom). Any suggestions?
  17. Open a New tab in your browser, paste this link (http://jcljay.free.fr/pdn/Oblique.zip) into the search bar and go on it.
  18. Or in the case of using the Classic version paint.net you have two folders of effects in which the same plugins are placed - C:\Program Files\paint.net\Effects and ..\Docs\paint.net App Files\Effects.
  19. See https://forums.getpaint.net/topic/118660-paintnet-43-is-now-available/?do=findComment&comment=586551 and https://forums.getpaint.net/topic/118660-paintnet-43-is-now-available/?do=findComment&comment=586553
  20. When I select any language in the Settings my interface always remains in Russian.
  21. ReMake

    Cheese Text

    Wow, a wonderful interpretation of the tutorial, @Pixey! Thank you. All my adaptations of Photoshop tutorials are an attempt to popularize the capabilities of both the PDN itself and the plugins that our developers create.
  22. This tutorial is available as a PDF. Click here to view or download it. This is an adaptation of the PS tutorial Cheese text effect in photoshop. The final image from the original tutorial is shown below. Required Plugins: AA's_Assistant by @dpy Align Object by @moc426 or Align Object by @xod Drop Shadow by @KrisVDM Gradient Mapping by @pyrochild Object Inner Shadow by @BoltBait Note: Read first How to install Plugins. Font required: Goudy Stout 1. Create a new image () of any size (f.e. 800x320px) and clear it (Ctrl+A, Ctrl+X). 2. Select the Text tool () and type CHEESE in the Goudy Stout font with size 84. 3. Select the Magic Wand () tool with Contiguous () mode and a Tolerance of 75-80%. Select the letter S in the text. 4. Switch to the Move Selected Pixels () tool and use the cursor keys to move the letter S to the right to reduce the distance between adjacent letters. 5. Repeat steps 3 and 4 for the remaining letters until you get an acceptable result. 6. Select the entire text using the Magic Wand tool with Global () mode. Switch to the Move Selected Pixels tool and stretch the text up a little (about 10 px). Crop to Selection (). 7. Increase the canvas size (Image - > Canvas Size () or Ctrl+Shift+R) with an anchoring to the middle. If necessary, align the text to the center using the Align Object effect (Effects -> Align Object for @moc426's effect or Effects -> Object -> Align Object for @xod's effect). 8. Zoom () a bit closer to the text, and with the Eraser () tool delete a couple of places on each letter as shown below: Now your text should look like this. 9. Select the entire text using the Magic Wand tool with Global mode. Fill the selection with a linear () gradient () with default colors () as shown in the image below. Apply the Gradient Mapping effect (Adjustments -> Gradient Mapping) by arranging the markers as shown in the image below. Use these colors for the gradient: FCDA6E, FFD24C. If necessary, move the colors using the Offset slider. Invert the selection (Ctrl+I) and delete the selected area (Ctrl+X). You can download prepared preset for Gradient Mapping (CHEESE.xml): CHEESE.zip 10. Add a new layer (). Select the Ellipse Select () tool with the Add (union) () mode and draw several holes of different diameters in the letters. Select the Paint Bucket () tool with Global mode and fill the selection area with FFEEB4 color. 11. Apply the Inner Shadow effect (Effects -> Object -> Inner Shadow) with Blur Radius 5, Shadow Strength 0,75, RGB 210, 150, 0. Merge layer down (). 12. Apply the AA's_Assistant effect (Effects -> Object -> AA's_Assistant) with the default settings, then apply the Drop Shadow effect (Effects -> Object -> Drop Shadow) with X, Y offset 2, Widening Radius 2, Blur Radius 3, Shadow Opacity 45 and black shadow color. 13. Add a new layer and move it down (). Set Primary color to 7DC3E6 and Secondary color to 5096C8. Select the Gradient tool with the Radial () mode and draw the gradient as shown below. 14. Merge both layers () and save your final result. Note: All settings described in this tutorial are approximate and depend on image size and the desirable end result.
  23. Only the presence or absence of a Google account matters. Most likely, @Sidecar Bob does not have an account.
×
×
  • Create New...