Messages 1 - 45 of 79
First | Prev. | 1 2 | Next | Last |
Lucato
![]() |
Hey FF team, congratulations for the new step. Really interesting this new feature. I'll check it out.
Do you guys intend to make a library for scripts as for filters? I mean, where members can share theirs scripts? It would be cool for those like me that aren't so good with programming languages. ;0) For a while, folks would use this thread for posting their scriptings in case they want to share it with the community. ;0) Cheers. |
|||||
Posted: June 8, 2010 12:15 pm | ||||||
Skybase
![]() |
+1 a searchable script repository would be awesome
![]() |
|||||
Posted: June 8, 2010 12:16 pm | ||||||
ThreeDee
![]() |
Awesome.
Here's my first "Scrippet" (script snippet): Proportional gradient. Proportional Gradient Scrippet.ffxml |
|||||
Posted: June 9, 2010 2:38 am | ||||||
Lucato
![]() |
Great! Thanks ThreeDee for sharing it!
|
|||||
Posted: June 9, 2010 3:17 am | ||||||
ThreeDee
![]() |
Hi Lucato, you're welcome!
Here's another one with pixel-based control. Pixel-Based Grid Pixel-based Grid Scrippet.ffxml |
|||||
Posted: June 9, 2010 3:32 am | ||||||
Carl
![]() |
Good idea Lucato, I too am script handicapped, thanks ThreeDee
![]() |
|||||
Posted: June 9, 2010 4:27 am | ||||||
Crapadilla
![]() |
It will be interesting to see whether we can generate some patterns from the wishlist now via the new script components. Of course, I'm blissfully (and hopelessly) unencumbered when it comes to scripting, so others will have to give it a shot.
![]() Anyone up for a Logarithmic Spiral? ![]() --- Crapadilla says: "Damn you, stupid redundant feature requests!" ;) |
|||||
Posted: June 9, 2010 5:13 am | ||||||
Vladimir Golovin
Administrator |
ThreeDee, nice grid!
(The code could use a little beautification -- e.g. you may drop 'local' for r, g, b and a. Our programmers like to stick it to every variable, while I'm in favor of using it only where it's actually needed because it makes the code less readable.) |
|||||
Posted: June 9, 2010 5:24 am | ||||||
Lucato
![]() |
Yup, nice one 3D! Thanks again.
|
|||||
Posted: June 9, 2010 5:27 am | ||||||
ronjonnie
![]() |
Good morning everyone,
![]() Hi ThreeDee, I agree with Lucato, a nice one. ![]() Thank you. I wondered if you ever finished your filter? I need your help please. http://www.filterforge.com/forum/read...ssage84442 Thanks, Have a GREAT day. ![]() Ron zazzle.com/Ronspassionfordesign*
So much to learn, so little time. |
|||||
Posted: June 9, 2010 5:49 am | ||||||
Crapadilla
![]() |
I've been playing with ThreeDee's "Proportional Gradient" script, and it appears that the resulting gradient is still affected by Size even if the flag is turned off. Is there a way to make Map Script components independent of Size?
Speaking of flags, what is their use? --- Crapadilla says: "Damn you, stupid redundant feature requests!" ;) |
|||||
Posted: June 9, 2010 7:59 am | ||||||
Vladimir Golovin
Administrator |
Yes, but I don't have a code snippet handy -- perhaps Egret can post one. It involves the SIZE variable. |
|||||
Posted: June 9, 2010 8:43 am | ||||||
Sphinx.
![]() |
Dilla, I think its something along these lines if you want x and y independent of size:
function prepare() SCALE = SIZE / math.min(OUTPUT_WIDTH, OUTPUT_HEIGHT) end; function get_sample(x, y) local x_no_size = x * SCALE local y_no_size = y * SCALE end; |
|||||
Posted: June 9, 2010 8:55 am | ||||||
dmorrill
Posts: 15 |
Just as an exercise in getting more familiar with Lua, I took the liberty of simplifying the code a bit:
David Morrill |
|||||
Posted: June 9, 2010 9:09 am | ||||||
dmorrill
Posts: 15 |
Following up on my previous post, here's a variation on ThreeDee's scrippet that allows you to set the grid line color and fill to arbitrary color or map values...
Grid Script Component.ffxml David Morrill |
|||||
Posted: June 9, 2010 9:34 am | ||||||
Lucato
![]() |
Regarding the Grid Script, shouldn't it show on the right and bottom side a thin line too as those shown at the top and left side once it is squared image?
|
|||||
Posted: June 9, 2010 9:45 am | ||||||
Skybase
![]() |
Hmm... well, I just began playing around with LUA. But aside from the advanced stuff it's really nice how you can throw in any formula and end up with pretty cool stuff.
Here's a classic and a tribute to my highschool math formula that was saved on a TI-83 function prepare() value1 = get_slider_input(NUMBER) end; function get_sample(x, y) w = (x+(value1)*3*math.sin(y*x))*0.2 u = (w+(value1)*3*math.sin(y*x))*0.2 return w, u, w, a end; ![]() |
|||||
Posted: June 9, 2010 10:04 am | ||||||
dmorrill
Posts: 15 |
Probably, but that will require a bit more code than the current one. But on the other hand, it tiles much better the way it is now ![]() David Morrill |
|||||
Posted: June 9, 2010 10:35 am | ||||||
dmorrill
Posts: 15 |
Here's the first script component I wrote yesterday (I'm still fairly new to FF, so it took me a while to figure out where the component was being stored). This one takes two input maps and outputs a new map organized as a variable size grid whose cell contents are randomly chosen from matching regions of the input maps (sort of like the game of Concentration). The color of the (optional) grid lines can also be specified using another input map/color.
For some reason, the script input editor won't allow me to set the lower bound of the line thickness input to 0, so the grid line thickness is 1 less than what you actually specify (i.e. if you set 1, no grid lines are drawn, setting 2 sets a grid line width of 1, ...). Random Dicer.ffxml David Morrill |
|||||
Posted: June 9, 2010 10:44 am | ||||||
ThreeDee
![]() |
||||||
Posted: June 12, 2010 3:20 am | ||||||
ThreeDee
![]() |
||||||
Posted: June 12, 2010 3:21 am | ||||||
ThreeDee
![]() |
Random Noise Scrippet
Lua doesn't allow random numbers in the get_sample(x,y) function, so I wrote this Scrippet to get around that with a pseudorandom number generator function. In other words, here's how to make plain random noise. Random Number Generator Scrippet.ffxml |
|||||
Posted: June 12, 2010 4:14 am | ||||||
Vladimir Golovin
Administrator |
ThreeDeee, this is a very interesting and important topic -- we're thinking about providing an API for randomness that is not prone to patterning artifacts of random number generators seeded by sample coordinates, and, at the same time, don't have the problems associated with Perlin-based noise (e.g. reduced dynamic range.) (I haven't checked the snippet yet -- too busy writing the help.) |
|||||
Posted: June 12, 2010 4:34 am | ||||||
Vladimir Golovin
Administrator |
Oh, looks good so far. I'll have the guys examine and test it, perhaps we'll go with a similar approach. |
|||||
Posted: June 12, 2010 4:36 am | ||||||
ThreeDee
![]() |
||||||
Posted: June 12, 2010 4:38 am | ||||||
ThreeDee
![]() |
||||||
Posted: June 12, 2010 4:39 am | ||||||
ThreeDee
![]() |
Hi Vladimir, Glad you find it useful. Yes, it would be nice to have that functionality, and a way to connect it to the global Variation slider if at all possible. TD |
|||||
Posted: June 12, 2010 4:50 am | ||||||
Vladimir Golovin
Administrator |
You can the VARIATION variable, which is visible to scripts that have the "Makes use of the global Variation setting" flag turned on in their Script Settings. As for our planned randomness API, we may decide to pre-seed it with VARIATION automatically (while allowing to add a "local" seed.) |
|||||
Posted: June 12, 2010 4:54 am | ||||||
ThreeDee
![]() |
Variation slider: Oh, excellent, got to check that out. Haven't gotten that far in investigating the possibilities. Randomness API plan sounds good. |
|||||
Posted: June 12, 2010 5:45 am | ||||||
ThreeDee
![]() |
||||||
Posted: June 12, 2010 5:48 am | ||||||
ThreeDee
![]() |
||||||
Posted: June 12, 2010 5:48 am | ||||||
ThreeDee
![]() |
Hi Lucato, Actually, no. The point of the script is to demonstrate using PIXEL values instead of relative values. The built-in components use values relative to the size of the image, while the Grid Scrippet uses fixed pixel values that don't change with the image size. Thus you can be sure your gridlines are always (for example) 10 pixels apart, whether the image is 600px or 126px or 6748px square. |
|||||
Posted: June 12, 2010 5:57 am | ||||||
ThreeDee
![]() |
||||||
Posted: June 12, 2010 6:01 am | ||||||
ronjonnie
![]() |
Good morning Everyone,
![]() Hey ThreeDee, Thanks for the Scrippets, they are very cool & most helpful, to help us all learn. Speaking of learning, reminds me of a project I am having trouble with, I was in great hopes that you would please help me with it? ![]() http://www.filterforge.com/forum/read...5&TID=7411 Have a GREAT day. ![]() Ron zazzle.com/Ronspassionfordesign*
So much to learn, so little time. |
|||||
Posted: June 12, 2010 10:25 am | ||||||
ThreeDee
![]() |
Hi Ronjonnie, That Water Splash filter was an unfortunate victim of my operating system upgrade -- it no longer exists. But maybe I'll get inspired to rebuild it with 2.0 one of these days. TD |
|||||
Posted: June 12, 2010 10:54 am | ||||||
ThreeDee
![]() |
Ok, thanks, I got that now. You can control the variations by calling math.randomseed(VARIATION) during prepare. Without this, the random numbers were different EVERY time, even when using a stored preset, which is fine if you wanted it to be that way, but if the variation happed to the exact one you wanted to keep... TD |
|||||
Posted: June 12, 2010 11:14 am | ||||||
ronjonnie
![]() |
Hey ThreeDee,
Thank you for the reply. I thought you were mad at me for something & I could not figure out what that would be. ![]() I am SO SORRY to hear the bad news about the loss of the Water Splash filter! ![]() PLEASE PLEASE find the time to rebuild it, I love it & can make good use of it. OK. ![]() ![]() ![]() ![]() Have a GREAT weekend! Ron zazzle.com/Ronspassionfordesign*
So much to learn, so little time. |
|||||
Posted: June 12, 2010 11:42 am | ||||||
Totte
![]() |
ThreeDee, real cool stuff you got here
![]() - I never expected the Spanish inquisition |
|||||
Posted: June 12, 2010 2:43 pm | ||||||
StevieJ
![]() |
Thanks for sharing, guys.....they are helping me to learn it.....especially like the Lines Scrippet.....
![]() Steve
"Buzzards gotta eat...same as worms..." - Clint :) |
|||||
Posted: June 12, 2010 7:55 pm | ||||||
Carl
![]() |
cool ThreeDee
......... not having a clue on scripting, is it possible to write a script which allows you to bring a second image into the editor? If it is, is any one interested in writing it, I'm sure alot of people would use it ![]() |
|||||
Posted: June 13, 2010 7:17 am | ||||||
Totte
![]() |
Carl, check out the Berestrokia sample from Vlad/Egret. I have an idea of writing a tool to create a bomber particle builder from a png.
Only problem, I wont make a Windows version, will be Mac OS X only. - I never expected the Spanish inquisition |
|||||
Posted: June 13, 2010 7:57 am | ||||||
ronviers
![]() |
||||||
Posted: June 15, 2010 10:23 am | ||||||
Carl
![]() |
where was that Totte? your gona have to give up that mac and give windows a go ![]() ![]() |
|||||
Posted: June 16, 2010 1:59 am | ||||||
Kraellin
![]() |
more, more, more!
If wishes were horses... there'd be a whole lot of horse crap to clean up!
Craig |
|||||
Posted: June 20, 2010 3:58 pm | ||||||
Dmitry Sapelnikov |
ThreeDee, where have you got the noise formula for your RNG snippet?
Could you give me a link? |
|||||
Posted: June 28, 2010 2:19 am |
Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!
33,711 Registered Users
+18 new in 30 days!
153,531 Posts
+36 new in 30 days!
15,347 Topics
+72 new in year!
11 unregistered users.