Ramlyn
![]() |
If I take a simple slider control, then I make a group, in a way that it works with the value I fixed but that it is not selectable to change its value, why does the group give a green input? It should be gray.
|
|||
Posted: July 20, 2019 1:28 pm | ||||
GMM
Moderator
Posts: 3491 |
Ramlyn, I'm not sure I understand your issue. If I create a group from a slider control it has a gray input.
1.ffxml |
|||
Posted: July 23, 2019 6:29 am | ||||
Ramlyn
![]() |
Here is my example.
The first part you can see a Slider connected with Perlin Noise in a gray input (Scale). The second part you see another Perlin Noise. This second time, instead of directly connecting the Slider to the Perlin Noise, I made a group using only the Slider. There are no elements that cannot be connected with the "Scale" input. But the group automatically makes a green input only, then I can't connect it to any gray input. The point to make a group using a Slider is that, once the slider is inside a group, it doesn't appear in the settings list. Show1.ffxml |
|||
Posted: July 23, 2019 9:49 am | ||||
GMM
Moderator
Posts: 3491 |
This is a screenshot of your filter. The group has a single input, and it is gray, not green.
https://prntscr.com/oj0q3p
Why do you need a slider in the first place? Controls are by definition used to control filter parameters. If you don't want users to edit the parameter just don't connect any controls to it. |
|||
Posted: July 23, 2019 1:08 pm | ||||
Ramlyn
![]() |
I attach a screenshot. You see the Slider in gray, but the same Slider in a group becomes green.
"Why do you need a slider in the first place? Controls are by definition used to control filter parameters. If you don't want users to edit the parameter just don't connect any controls to it." Some components have parameters that are not set as numeric values. While many times it is useful to use a numeric value, otherwise it is very hard to make it match with other components inside the same filter. Then I connect a Slider or an Intslider. ![]() |
|||
Posted: July 24, 2019 8:28 am | ||||
GMM
Moderator
Posts: 3491 |
Well, that's an output. It goes out, not in
![]() The behavior is by design. We have never thought of a need to create numeric groups with gray outputs.
Could you share an actual filter example? If you want us to consider implementing gray groups we'll need an actual use case. |
|||
Posted: July 24, 2019 11:33 am | ||||
golloween1972
Administrator |
The group is green, not gray, because Filter Forge doesn't have first-class numeric (i.e. gray) components. An example of such a component would be "Add" that accepts two numeric (gray) inputs and outputs the sum of their values, via a numeric (gray) output. Filter Forge doesn't yet have first-class numerics, because it's a very complex tasks, if we are to do them correctly. I do, however, have a working draft titled "First-Class Grays, with Scripting", which could be implemented, quote, "the ugly javascript way. Without lists, tuples and high-order functions, just weakly typed values and math. Scripting will provide Turing-completeness.". Also, if I understood your question correctly, you want to be able to make constants, i.e. simple components that output numeric values without allowing to control them via filter controls. Is this correct? |
|||
Posted: July 25, 2019 11:04 am | ||||
Sphinxmorpher
![]() |
I found myself trying to do this also. Didn't work.
I don't remember the actual use-case, but it most likely had to do with some repetitive remapping logic that I wanted to "hide away" in the group, dunno. I'd say more broadly that the problem is really that there is no way to "go gray" and the options to work with gray "logic" is limited to whatever the remapping thingie implements. The topic has surfaced many times in the past. We need a green-to-gray converter. Basically you'd just have to provide a sample coordinate and perhaps channel picker. And then these "one-sample-samplers" would execute prior to everything else. |
|||
Posted: July 25, 2019 11:50 am | ||||
Ramlyn
![]() |
Yes golloween1972, that's what I mean.
Sorry if I just bump problems without giving a solution. |
|||
Posted: July 26, 2019 9:52 am | ||||
Ramlyn
![]() |
"The behavior is by design. We have never thought of a need to create numeric groups with gray outputs. "
Basically, if we put together some element and we have a green output, it is fine that the group gives a green output too. But if we have a gray our blue output, if we make a group of this, it should not change to green. |
|||
Posted: July 26, 2019 10:06 am | ||||
golloween1972
Administrator |
Again, this is related to first-class numerics (gray components) -- which are not implemented in Filter Forge. Our current gray components are not actual components, despite looking like ones. They're just a way to control multiple inputs simultaneously. See my post above where I explained what I mean under first-class numerics. |
|||
Posted: July 26, 2019 11:39 am | ||||
Ramlyn
![]() |
Thanks for the explanation golloween1972
![]() |
|||
Posted: July 27, 2019 2:47 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!
29 unregistered users.