2 Answers
Edit: The important thing is to realize your instances.
here is my previous answer-
"Generating variations in the instances with Capture Attribute
In order to pass a value through the node tree, you need to use a CaptureAttribute node. It can capture a value based on your curve's position or other attributes.
Then, you can begin to change values in other nodes based on the values of captured attributes."
Revised Pictures after comments:
- 2,162
- 9
- 14
-
You don't use Capture Attribute at all in your node tree – Crantisz Dec 11 '21 at 00:07
-
1It is in the node tree connected to a position node. – common_goldfish Dec 11 '21 at 03:09
-
@Crantisz, I have upvoted your answer, and edited mine a little. It was the right idea but my example is better now. – common_goldfish Dec 12 '21 at 07:31
-
I see, but you just input rotation and scale, the object itself remains the same – Crantisz Dec 12 '21 at 09:49
-
Yes, in order to make a more decent variation, I would have to affect a second object with the captured attribute. – common_goldfish Dec 12 '21 at 15:02
The concept of instancing is that you set a same object (object data) to different places. Sure, you can have different position rotation and scale, but the object will be the same. It is just how instances work. Imagine that you have several linked object created by Alt+D. They are edited at once, you cannot set a different mesh/curve/etc. data to them.
So in order to get different objects, you need to convert them into separate objects. This is exactly that Realize Instances node do.
After that, you can actually manipulate with data inside these objects. It may be a bit complicated.
To move spine position, you can use Set Position node, but you should enter different offset depending on spine ID and point ID. Spine ID you can easily get using ID node. But how to get point ID? To get it, I used Capture Attribute - which can grab a point ID before instancing, so that you will have 0 for the first vertex and 1 for the second. Using these 2 IDs, you can change the position of the second vertex in each spline:
- 35,244
- 2
- 37
- 89
-
1Thank you. It works, but I don't understand why. Two nodes ID look the same and have different data input, it is annoying. Where can I find a good explanation (written, not Youtube) of data flow in GN 3.0? – fomaamof Dec 12 '21 at 15:33
-
1@fomaamof I think this video has a pretty good explanation, even it is YouTube: https://www.youtube.com/watch?v=2qWnRRkV9Zk – Crantisz Dec 12 '21 at 19:23



