- 551 topics

Creating your own computer graphics. Questions, guides, tutorials, tips, and best practices.

You cannot create topics in this forum.

How to get selection using JSScripting?

I have a script that I mentioned before that recolors pixels monochromically. Within an UI mockup I use it to change the states of various elements, icons and text mostly. The script currently works on everything on a layer, and as the mockups are sizeable, th...

Script that replaces one color with another with tolerance.

I'm trying to create a script that replaces oldColor with newColor with a tolerance (0-100) in percent. Sadly I couldn't find a way to get HSV from a particular variable so I am stuck on using RGB (wait... does it use BGR format instead??) and scraping the val...

A script to animate a small rumble (blurry effect if needed)

This will be very useful for my upcoming cursors I want RWCursorEditor to make me a small rumble animation for any image to make into an animated cursor as a script. Is it possible?

Help! Document.Animation.GetFrame(0) not working!

This is my code and it gives me an error! var frame0 = Document.Animation.GetFrame(0); Unable to get property 'GetFrame' of undefined or null reference

A Script Request (RWPaint user)

plus an idea for forum expansion Hi, I've been using RWPaint for all my art projets for the past 2-3 years. It was so perfect for my needs that I didn't need to ask for anything. Because I didn't know ( 😞 ) it's scripting capabilities. Now I need something:...

Script, Transfer image layer to alpha layer

Transfers the color of one layer to the alpha of another layer, creating a new layer with the result. --Vlasta wrote this for me some time back. ;| "Configuration" Context; var li = Document.LayeredImage; var n = li.Layers; var names = []; for (var i = 0; i &l...

count the number of pixels of a certain color

in RW-Paint I need to check how many pixels of a certain color is used in an image. The perfect scenario: I colorpick on a pixel in my image, and in the palette it tells how many pixels are from this color. It would be good if the output can be turned on/off. ...

Transparent Coding

I need a code ASAP Hey, I'm looking for a code for making all of the pixels change alpha of your choice. In other words, make the picture transparent. Is there a code for this?

"Combine Icons" batch operation not working in RWIE...

Hi Vlasta, I'm trying to use your batch op that you wrote, to combine a bunch of icons. They are .png files of different sizes. Screenshot: http://i.imgur.com/duu0OKJ.png (this only shows a small portion--they are in different folder) I keep getting "Object d...

Requesting a graphing calculator.

Can it be done? In school I'm starting to work with sine waves... and after seeing some examples the teacher was using I was thinking it would be kinda cool to see in this. Would a script that fills a layer with a graph of a given equation be difficult to impl...

Create icon from image, but only certain sizes and bit'th

in RWIE Hi Vlasta, I'm using the beta, but I have the non-beta installed too. I've got a bunch of PNG files to make into ICOs, but I only want certain sizes (16,24,32,64) and the highest bit depth (32). Can this batch setup be made with just the GUI, or does...

A script to make everything into 24x24 PNG files?

batchop request :- } Hi Vlasta, I've been needing to convert lots of images to 24x24 PNG files. Often the source file is a larger PNG that needs to be reduced to 24x24 pixels. Sometimes I need to deconstruct ICO files that I made a long time ago, to get the 2...

Script Exchange

Post your scripts, and find some more I hope users will post various scripts here to enhance the general awesomeness of the RealWorld applications suite and help each other. Following is a template (for ease of browsing) to post scripts. Description: describe ...

Help with coding

I need help with coding using javascript I was wondering how to use Java Script, I know all the basic coding, I learned it in a website called "scratch" but it uses visual script codes, I don't know what to type for what. So... Can you help me? Thanks!

How to minimize scripting

If I m using scripting in Java and want to use minimize for my website, How can I use this script. Anybody have Idea about this things.

A request/question

Want to know if I can make RWP act a certain way First off, I have used RWP for 2 years and I could never go to anything else... it is perfect. There is only one thing that bugs me and I am wondering if I can alter the code to get this operation. When I click ...

How about a script to chop (parse?) an image into tiles?

RW Icon Editor This one might be more of a challenge for you, Vlasta 😊 I'm not sure if this could even be scripted. Also, since you'd start with only one image, I'm not sure if it would be a "batch" operation... Anyway, my general work-flow is to create my...

Letters/Names Following Mouse Pointer

Letters as Mouse Tail Hi there, anyone knows how to use Letters or names to use as mouse tail, such that when you move the mouse pointer, the letters or names will follow the mouse pointer? I have the code but it has an error. While loading in execution tab in...

Scripted/Batch cropping?

in RW Icon Editor Hi Vlasta, Is it possible to make RWIE do batch cropping of PNGs, prior to batch conversion into ICO? My thought is to have a folder-full of images that are (for example) 132x132 pixels, and then RWIE would trim off 2 pixels all the way ar...

Script to replace all pixels of a color?

I know we covered it before but I can't find it... I think we already covered it but I can't find it... maybe it got archived...? Anyway I'm looking for a script that will allow someone to pick two colors, and replace every pixel matching the one with the seco...

Request: Black&White to Black & Transparent?

Can you make a script that makes white invisible, grey transparent, and so on? I'm looking for a script to make a transparent image from a black-and-white one, that does so by erasing all the white, and replacing the greys with transparent black. This may be p...

adding a link to my new icon

Simple desktop *.ico Hello I've searched these forums - but perhaps my question is just too simple! Where/how to connect my lovely new little icon with a URL?

Filmstrip-to-GIF?

The filmstrip exporter should have a reverse function... I have been using the Export Filmstrip tool in RW Paint Animation mode, so I can use that recolor plugin you made a while back, and I just realized that it's a lot more complicated to turn it back into a...

Scripting tips and tutorials

For those looking to learn how the scripts work, I recommend to look at the scripting tutorial and to read the documentation. Also, the cursor wizards in the cursor editor are scripted and are good examples of scripts (look here).

How to make RWCommand files?

and how do I edit the toolbars BTW? Vlasta has made a handful of files called RWCommands that are essentially scripts that you drag and drop on the toolbars and you just added a new button to the system. This is a pretty neat trick and I'd love to see how it i...