Jump to content

BoltBait

Administrator
  • Posts

    15,730
  • Joined

  • Last visited

  • Days Won

    405

Everything posted by BoltBait

  1. As long as you are using CodeLab v3.0 (or higher), you can. Read this post for more info on how to do it: https://forums.getpaint.net/topic/880-codelab-v32-for-advanced-users-released-january-17-2018/?do=findComment&comment=541005 EDIT: ...which toe_head2001 has just quoted above this post.
  2. I don't think there's a plugin to do what you want. The nearest is probably "Adjustments > Hue / Saturation".
  3. In your Render() function, you should always include the line "if (IsCancelRequested) return;" in your Y loop so that if the user changes a user control (slider, checkbox, etc.) the UI will feel more responsive. This causes it to check for UI updates at the end of each line rendered. If your X loop is very slow, you should move that line into your X loop instead... therefore it will check between every pixel! However, if your code is calling a function in a library that doesn't have access to the IsCancelRequested property, try this:
  4. Before you get too excited, there will be some limitations... There is no Roll Ball control. That wasn't introduced until paint.net v4.0. There is no help system and no help editor. There is no colorful slider decorations. That's also a 4.0 feature. There is no option for Aliased Selections as ALL selections in Paint.NET 3.5.11 are aliased. You can only enable/disable controls based on a checkbox and not other types of controls. The code generation is slightly different for some effects and all of the BlendOps. This means, that it won't necessarily compile a modern script you see on the forums. However, the "File > New" templates will generate the appropriate code for Paint.NET v3.5.11 so maybe you can use that to convert a newer script for use on older Paint.NET. This will take quite a bit of work to accomplish... but, I will have something for you to play with when @toe_head2001 and I publish CodeLab 3.3. ALSO! This will be a "one-off". In other words, it will be the last CodeLab to support Paint.NET 3.5.11. We are not going to be supporting two forks of CodeLab.
  5. How would you feel about this... I could build you a copy of CodeLab v3.3 (which hasn't even been released yet) with all the features... which will run on Paint.NET 3.5.11. ( @toe_head2001, are you seeing this?! )
  6. Why would you possibly need that? Are you starting a museum?
  7. There is a plugin in my pack that flips a selection. Try it out: https://forums.getpaint.net/index.php?/topic/32048-v
  8. What happens when you click this: Download
  9. The key is having the right image on your clipboard.
  10. So, in step 1? Which link are you clicking on?
  11. At what step do you see the error message?
  12. Please read this page: http://boltbait.com/pdn/InstallingEffects.php
  13. Consider this an official tutorial request!
  14. And, of course, this is the MOST amazing. We need to be able to make this.
  15. I can reproduce this: Open paint.net Select Text tool, size 72pt (so you can see it on the preview image) Click on the canvas and type some text (you should now see it on the preview image) Click on the [+] handle and move the text below the canvas (it disappears from the canvas but stays on the preview image) Finish the text by clicking Finish or clicking on the selection tool (the preview image still shows the text although it is not on the canvas) The preview image doesn't refresh until you click on the eraser tool, pencil tool, paint brush, etc.
  16. Consider it fixed for the next release. My fault. I can't believe I did that.
  17. They are combined into a single DLL called SelectionTools.dll and they all appear under a single menu called Effects > Selection.
  18. First, upgrade your paint.net to version 4.0.21. Second, this is a problem with Windows and not paint.net. HOWEVER, you can try this: https://forums.getpaint.net/topic/28520-print-it-tools-effect/
  19. The reason for this is simple. You are trying to store something into a variable defined as an integer. So, you rightfully tried to cast your calculation to integer using "(int)" in front of it. The problem is that when casting, you're casting only the next item to int. So, you're casting k to an integer then multiplying it by n which is a double... the result of this multiplication is a double. And, you can't store a double into an integer variable. The solution, as pointed out by toe_head2001, is to put parens around k * n so that the multiplication happens first resulting in a double and then cast that double to an integer for storing into the variable. You actually did it correctly on line 66. Clear?
  20. Yeah, well, we'll just have the ")" character close the AutoComplete box, and call it a day. Probably have to also include "(" for when starting a function.
  21. The built-in effect Distort > Tile Reflection does it... probably a good place to start.
  22. Never. I honestly have no intention to add the linked slider rule into CodeLab. It already handles the Enable/Disable rule and the Wrapped value rule. That's all you get.
  23. To me, this only happens when I type "if(" followed by the tab key twice. If you type "if" followed by tab key twice, it works fine. EDIT: typing Madjik's code above... int b1 = 0; int b1 = 1; if (b1 == b2) After pressing ")" on the last line, press the space bar. The result is: int b1 = 0; int b2 = 1; if (b1 == b2)b2 @MadJik, I could not reproduce your issue. Are you sure b1 and b2 are in scope where you're typing? Reproduced: This happens when you type those lines outside of a function, like the Render() function. That is, on the same level as the Render function itself. It is not valid to write code at that level, only define variables.
×
×
  • Create New...