Crapadilla
![]() |
I'm not the most programming-savvy, so I'll just keep asking stupid LUA questions.
![]() Is there a more optimal way to clamp negative HDR values to zero (script attached below)? [Side remark: FF Team? What about a native Clamp component?] Clamp Negative Values.ffxml --- Crapadilla says: "Damn you, stupid redundant feature requests!" ;) |
|||
Posted: May 1, 2014 7:15 am | ||||
xirja
![]() |
I haven't checked that attachment, but I think the regular Blend does. If not that, then the If.
![]() _____________________________________________________
http://web.archive.org/web/2021062908...rjadesign/ _____________________________________________________ |
|||
Posted: May 1, 2014 7:49 am | ||||
Skybase
![]() |
Yeah my thoughts were a regular blend component just clamps values.
|
|||
Posted: May 1, 2014 8:39 am | ||||
Crapadilla
![]() |
Yes, but the "regular" Blend also clamps values greater than 1, due to its map inputs being LDR. My script clamps negative values to zero, but does not clamp values greater than 1. Edit: Dang! Totally forgot about the If component. If is way faster than the script. Thanks guys. Edit 2: I retract my Clamp component request. Totally doable via If. ![]() --- Crapadilla says: "Damn you, stupid redundant feature requests!" ;) |
|||
Posted: May 1, 2014 9:47 am | ||||
inujima
![]() |
Use Max component !
![]() |
|||
Posted: May 1, 2014 1:58 pm | ||||
Crapadilla
![]() |
Yeah. For clamping to a custom range, Max>Min works great. Slightly faster than If>If.
![]() --- Crapadilla says: "Damn you, stupid redundant feature requests!" ;) |
|||
Posted: May 1, 2014 2:16 pm |
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,533 Posts
+38 new in 30 days!
15,348 Topics
+73 new in year!
28 unregistered users.