YOUR ACCOUNT

Login or Register to post new topics or replies
David Roberson
Artist
Posts: 404
Filters: 36
I've been searching the forums for examples of Curve Scripts I could use to learn how to do custom curves or curve ops, and so far have come up empty. So, I'm just putting the request out there, if anyone has Curve Scripts they'd be willing to post and share. My initial goal is to create a curve ops type of script that can provide Start, End, Minimum and Maximum sliders for Bezier and composite curves. Eventually, I'll have a day free to just experiment, but I'd like to have those four controls to start with. I can usually find formulas for different curve profiles online, but those examples are welcome too.
  Details E-Mail
James
James
Posts: 676
Filters: 46
I just submitted a texture called Techno Panels which uses a custom Curve Operator script which basically takes the input and applies tangent (tan) maths to it. It shows how to use minimum and maximum sliders on a curve.

If your interested the code is:

Code
function prepare()
   mn = get_slider_input(MINIMUM)
   mx = get_slider_input(MAXIMUM)
end;

function get_sample(x, y, t)

   a = get_sample_curve(x, y, t, SOURCE)

   v = math.min(math.max(math.tan(a), mn),1) * mx

   return v
end;
  Details E-Mail

Join Our Community!

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!

Create an Account

Online Users Last minute:

19 unregistered users.