Hi there,
I am busy with a definition that takes a curve input and outputs a more sketchy looking one, utilizing perlin noise to determine the degree of sketchiness. Fun!
The issue I am having: you can see in this screenshot that three identical curves will give you three identical sketchy curves. Even if the curves are identical, I don’t want the sketchy versions to be identical.
So I’m thinking this is where the problem lies, as I should have three sets of values (number of trees corresponding with the number of input curves), not one:
I’ve taken this output and duplicated the data so that I have three branches of data, thinking that maybe I can just change the order of values per branch so that I achieve the variation I need. But using the jitter component just shuffles them all exactly the same way, which defeats the purpose. How do I duplicate this data (give me the same amount of data trees as number of curves, and shuffle the order of data within each?
multiple sketchy lines.gh (15.7 KB)
For one thing, you are feeding values in the range of zero to five to a Graph Mapper that is clearly constrained to the -1 to +1 domain.

Ignoring the previously mentioned flaw in range of data values, here is a way to jitter one set of results (twice) to get three (white group):
multiple sketchy lines_2023JuL8a.gh (14.5 KB)
P.S.
multiple sketchy lines_2023JuL8aa.gh (13.5 KB)
1 Like
Hi Joseph! Thanks for the response. Although your solution works for this example, it does not scale successfully. If I for example increase the number of identical input curves to 100 (instead of 3), this definition would still only jitter the values of two of the curves. Rechecked my wording and this wasn’t made abundantly clear.
What I am hoping to achieve is that the set of values from that multiplication component is duplicated x number of times (x = number of input curves), which gives you x number of data branches, then jitter the order of values per branch as to have each sketchy curve being unique.
Had a relook at this definition, and stumbled upon a workaround. If each curve has 100 values, and in this case 4 curves, I duplicate the data by the number of selected curves, flattening it into a one list (now containing 400 values) and then just dividing this list into 4 separate branches.
multiple sketchy lines.gh (12.0 KB)