I wonder why trim curve node or subdivide curve node have diamond like field inputs? How could possibly trim start /end value be a field. I.e many different values?
Or it’s supposed to accept different start/end values for different splines withing same curve?
Could somebody show an example how field could be used there?
until we get a node that allows us to build custom fields, mebbe not quite how you’re thinking… but you probably could use a float curve in the meantime, like this:
Thanks again KDLynch
But I am more interested in something like giving spline5 end value 0.5 , spline8 end value 0.3 and all the other splines 0.9? Or it’s more about selection input rather than field input for the end ?
I am not sure I understand this accumulate field node . But year we need a list of values for different spline indexes my guess. Maybe it’s one that could do it.
I guess you could do it with Selection: setup several Trims with different non-overlapping selection inputs… but it’s only practical if you don’t have many of those
This is not useful way of thinking about fields as it doesn’t have general application (even though you can do it as demonstrated by KDLynch and StrayBillie). Anurag’s example and mine show more useful approaches where you care less about the spline’s index and more about its context in how/where it is generated.
No, this is a red herring - You use Accumulate fields for other things (like stacking boxes).
Thanks a lot guys and especially StrayBillie
your example does exactly what I am trying to do. Not really a function to control the ends but rather an exact list.
Wonder if we have any other ways to create such “lists” ?
Could it be done with some text file , string node maybe ?
Here is a node i made once. It is limited to 10 values. You could easily extend the node chain to support for more. But i only use those manual created fields on smaller domains, because as @zeroskilz said it is a not a good general approach. But sometimes i can not find a better solution and it became somehow “handy” (…And occasionally i love to work physically):
One trick I do to create “lists of input values” is to create a separate object - a mesh, with just a line of vertices (don’t even need to be connected) - and then move each point’s x, y, and z positions around so as to create a list (with either 3-vector values or up to 3 float values) and use that object as an input into the geometry node tree, and sample its position by index.