Currently you’re producing a list that looks like this: {a, b, c… x, y, z}.
Reversing that list is giving you: {z, y, x… c, b, a}.
What you need to do is limit the list of characters to the same length as your list of grids. So:
run a second wire from the list of horizontal grids to a List.Count node
Modify the Code Block(FOR HORIZONTAL GRID) to read: 1…x…1; true;
Wire the results of the List.Count node into the x value on the code block.
Wire the resulting list of numbers to the n input on the Character.FromNumber node, and the true value into the upperCase input (you’re feeding a list of numbers into a “true/false” input at the moment, but the node is powering through it)
The rest of the script should run fine as it is.
Pop a few watch nodes in along the way to see the results you’re getting - should help you troubleshoot as you go. If that doesn’t work let me know and I’ll take a crack at it.
The grids remunerate appears to be working fine. It numbers the grids in the order in which they are fed in, so if you feed them in a different order then you will get the right results. Try using a select elements by curve node instead of the all elements of category you are using - I believe that will put them in the order you want.
To start with J I would build a list of every letter A to Z. Then use a ‘string.indexof’ to get the number of the letter you want. Then add that to the list.count node from before. Then convert to the alphabetical sequence as before. Then a list node to remove the result of the string.index of from the front of the list. (Can’t remember name and I’m traveling so hopefully you can find this one with some trial and error).
The code block 1…x…1 defines a sequence of numbers from 1 to x stepping up 1 each time.
Look here for more info:
[quote=“JacobSmall, post:4, topic:8523”]
select elements by curve node
[/quote] thanks for the mention @jacob.small! There’s actually a select grids by curve now which is more stable. It will order them based on how the curve goes through.
Hello there! How can I load this Dynamo Script? I am having some problems, for example, I can’t find the “Select Grids By Curve” node! What is the procedure?