Login - Create Account
Bookmark and Share

Scripiting Library.

<< 1 2 >>

Login or Register to post new topics or replies
ThreeDee
Lost in Space

Posts: 1140
Filters: 89
Quote
Egret wrote:
ThreeDee, where have you got the noise formula for your RNG snippet? Could you give me a link?


Hi Egret, sent you the link by mail yesterday as the forum was read-only.

TD
  Details E-Mail
Totte
Übernerd

Posts: 1333
Filters: 97
Quote
Carl said something like: where was that Totte?

http://www.filterforge.com/download/b...pting.html
- I never expected the Spanish inquisition
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1140
Filters: 89
Tech Noise

Fractal square noise of in sizes from 1/2 to 1/2^n.

Tech Noise Scrippet.ffxml
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1140
Filters: 89
Hmm. That file name changed radically from what I uploaded. Hope it works...

The basic output is this, iterations and bevel size are adjustable:

  Details E-Mail
ThreeDee
Lost in Space

Posts: 1140
Filters: 89
Image sample, using a blend of two Tech Noise components as a height map in a Surface filter.

  Details E-Mail
Dmitry Sapelnikov
Filter Forge, Inc. AKA Egret
Posts: 76
Filters: 5
ThreeDee, thanks a lot for your mail and link.
Your filter has a right implementation of the rng algorithm. Nevetheless it works incorrect due to some technical FF features. FF doesn't guarntee consecutive order for image blocks rendering. If you even zoom or pan filter preview during rendering blocks order may change. It will cause changes in you rng sequence.
Just try to use your rng snippet with Bomber Rotation input, then zoom and pan during rendering and you see a lot of artifacts such as broken particles, strange dust, etc.
And of course, we are explaining this issue in FF help or wiki.
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1140
Filters: 89
Hi Egret,

Right, the script produces a different random number every time you call it, even for the same exact coordinates.

TD
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1140
Filters: 89
Size-independent proportional gradient

Fixed that Proportional Gradient so it 'ignores' the Size, pixels setting.

Proportional Gradient Scrippet.ffxml
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1140
Filters: 89
(What's the deal with the attachment file names changing???)
  Details E-Mail
StevieJ
Designer/Artist

Posts: 11224
Filters: 163
Quote
ThreeDee wrote:
Fixed that Proportional Gradient so it 'ignores' the Size, pixels setting.

Nice....and thanks for sharing!!! smile:)
Quote
ThreeDee wrote:
What's the deal with the attachment file names changing???

+ 2 ???
Steve

"Buzzards gotta eat...same as worms..." - Clint :)
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1140
Filters: 89
Disable 'Size, Pixels' locally

The other requested feature smile:D

Disconnect Size.ffxml
  Details E-Mail
StevieJ
Designer/Artist

Posts: 11224
Filters: 163
LOL.... smile:D I guess we don't need to request this stuff from FF anymore.... smile:D

That will definitely work!!! Thank you!!! smile8)

I feel like a kid in a candy store now.....all the possibilities with scripting.....especially in 3D, ray tracing, etc.....I'm now resolved to spend all my free time in it..... smile:devil:
Steve

"Buzzards gotta eat...same as worms..." - Clint :)
  Details E-Mail
Kraellin
Kraellin

Posts: 12533
Filters: 97
Quote
ThreeDee wrote:
(What's the deal with the attachment file names changing???)


indeed. what is that? will these actually work in FF or do we need to convert something now?
If wishes were horses... there'd be a whole lot of horse crap to clean up!

Craig
  Details E-Mail
Crapadilla
lvl 52 Filter Weaver and Official "Filter Forge Seer"

Posts: 4037
Filters: 59
Quote
ThreeDee wrote:
Size-independent proportional gradient

Quote
ThreeDee wrote:
Disable 'Size, Pixels' locally


Great stuff, ThreeDee. Thanks!

You should really submit these useful script snippets to the library... smile:)
--- Crapadilla says: "Damn you, stupid redundant feature requests!" ;)
  Details E-Mail
Redcap
Redcap

Posts: 1290
Filters: 100
Okay, so I am trying to create a filter that allows the user to make a quadrilateral by inserting 4 cordinate points controled by 8 sliders. and x and y value for each of the four points.

I worked on scripting for about 2 hours and still haven't figured out how to do this. Here is my work so far:

I imagine I am close, but just don't have the little bit of logic statments correct.

If some could look at this and see what they could make of it, I would be very aprreciative.

P.S. if you get it so you can get concave shapes you get bonus points.

quad.ffxml



If you are bored check out my unpractical math website
  Details E-Mail
Carl
c r v a

Posts: 7139
Filters: 74
Thanks ThreeDee smile:)
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1140
Filters: 89
We might as well submit future Scrippets to the online library.

Made a Diffuse Scrippet, arriving soon.

  Details E-Mail
ThreeDee
Lost in Space

Posts: 1140
Filters: 89
Well, I noticed today that my "Disable 'Size, pixels' locally" scrippet was messed up: It did the exact opposite calculation, doubling the reduction of the image.

And nobody said anything smile:D

Here's the correct version, also being submitted to the library.

Disconnect Size Scrippet.ffxml
  Details E-Mail
StevieJ
Designer/Artist

Posts: 11224
Filters: 163
Quote
ThreeDee wrote:
And nobody said anything

Was easy to fix....and can't beeeotch with all your shares.... smile;) smile:D
Steve

"Buzzards gotta eat...same as worms..." - Clint :)
  Details E-Mail
Betis
The Blacksmith

Posts: 1100
Filters: 73
Off topic, but everytime I see ThreeDee's avatar, I think the lightning is some epic glowing mo-hawk.
Roses are #FF0000
Violets are #0000FF
All my base are belong to you.
  Details E-Mail
Kraellin
Kraellin

Posts: 12533
Filters: 97
guys, post your filters with scripts in them or at least post the filter name in the library so i can look at the various scripts!
If wishes were horses... there'd be a whole lot of horse crap to clean up!

Craig
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1140
Filters: 89
Quote
Kraellin wrote:
guys, post your filters with scripts in them or at least post the filter name in the library so i can look at the various scripts!


Which one(s) are you missing? Mine are all either on this thread or in the FF online library. Or are you having problem downloading them from the forum?
  Details E-Mail
StevieJ
Designer/Artist

Posts: 11224
Filters: 163
Quote
ThreeDee wrote:
Or are you having problem downloading them from the forum?

I do sometimes....just opens script and doesn't open in FF.....don't know why that happens.... smile:?:
Steve

"Buzzards gotta eat...same as worms..." - Clint :)
  Details E-Mail
Carl
c r v a

Posts: 7139
Filters: 74
that happens to me as well .... always have to save as and add .ffxml or it just code smile:(
  Details E-Mail
Kraellin
Kraellin

Posts: 12533
Filters: 97
hi ThreeDee,

i think i've got all of yours that you posted here in the forums, but what i'd love to see is if folks that make scripts would post those scripts here in the forum or, if they've posted a filter to the library that has a script in it, then post a link to that filter here so that i and others can find these without having to open every submitted filter in the library to find the ones with scripts. the point of this is examples of the use of the script code.

and no, i have no trouble downloading. i'd just love to see, and potentially use, the various scripts, perhaps in different ways than made and to also learn the code a bit.
If wishes were horses... there'd be a whole lot of horse crap to clean up!

Craig
  Details E-Mail
ThreeDee
Lost in Space

Posts: 1140
Filters: 89
Okay, I see. It could be an idea to FF to have filters with scripts as their own category in the library. That way they would be easier to find. Or perhaps a way to search for filters with Script components in them in the library.

Yeah, forum downloads are still buggy. I have to do the same "save as..." +.ffxml as Carl.
  Details E-Mail
ronjonnie
Designer / Artist

Posts: 729
Filters: 320
Hey Everyone,

Thanks ThreeDee for all your help with the scripting, maybe some day I will actually have the time to learn it.

Please smile:) don't forget this: http://www.filterforge.com/forum/read...5&TID=7411

Thanks for your help with that, & have a GREAT day! smile:)

Ron
zazzle.com/Ronspassionfordesign*
So much to learn, so little time.
  Details E-Mail
Kraellin
Kraellin

Posts: 12533
Filters: 97
Quote
ThreeDee wrote:
It could be an idea to FF to have filters with scripts as their own category in the library. That way they would be easier to find. Or perhaps a way to search for filters with Script components in them in the library.


yup, that would be great. you could even broaden that idea to be able to search filters by any component, though i dont know that that would be used that much.
If wishes were horses... there'd be a whole lot of horse crap to clean up!

Craig
  Details E-Mail
GMM
Moderator
Filter Forge, Inc
Posts: 1726
Quote
ThreeDee wrote:
eah, forum downloads are still buggy. I have to do the same "save as..." +.ffxml as Carl.


If you are still experiencing issues w/downloading, feel free to open a thread in the 'Bugs and problems' section – so that the scripting topic is not diluted. Details on the browser and OS version are appreciated as always smile:)
  Details E-Mail

<< 1 2 >>

Join Our Community!

Filter Forge has a thriving, vibrant, knowledgeable user community. Feel free to join us and have fun!

15,386 Registered Users
+11 new last day!

112,642 Posts
+21 new last day!

10,103 Topics
+15 new in 7 days!

Online Users Last minute:

7 unregistered users.

Recent Wiki Edits:

Follow filterforge on Twitter