Rotation of instances on instances after realizing base instances

This is my first question here, i’d be so happy if you could help me out!

I’m building a procedural plant generator based on a spiral curve. I scatter the spiral as instances on a mesh, rotation aligned to the base mesh normals. Then i instance leaves on the points of the spiral and set the rotation so each leave is facing outwards from the center of the spiral. That works just fine by providing the vector from curve center to points on spiral and align euler to vector.

But ones i realize the spiral instances, the rotation of the leaves is off.

I did few hours research yesterday without finding a solution. I’m sure it can be solved with vector math, but i’m not good at it yet and also i don’t understand what exactly changes with ‘realizing instances’. I read the manual regarding this, but i can’t wrap my head around what it means and how i have to manipulate vectors in this case to make it work.

I attached screenshots, first one showing desired rotation without realizing, second false rotation after realizing instances. Also i attached a simplified test .blend

Thanks for any help, explanations also highly appreciated!


Welcome…

When you realize curves you lose the scaling info that comes with instances…

would it not be better to realize a mesh?

What is your goal?

Oh man, sorry for this late reply! And thx a lot for your input! I actually solved the rotation issue with the help of a blender stackexchange member, i post a screenshot. Align to euler gives rotation fro each point on spiral to its center. After realizing, additionally the captured instance rotation is added to this rotation via rotate euler.
In first place i had something in mind that i think is impossible: spiral instances distributet to curved mesh with instance rotation aligned to base mesh normal, RESAMPLE CURVES BY RANDOM VALUE after realizing instances, then instance leaves on the spirals. The problem here was the lost rotation values after realizing, and due to the individual resampling i was not able to recreate the rotation by attributes as the vertex count had changed. Sorry for the explanation in words, i have deletet the tried systems already, but probably you get what i mean? In the end, i scattered 5 spirals with different resolutions. The idea is to have bromelias with different count of leaves. Nice about this solution is i can control the spirals much better.

I also post a screenshot of the overall thingy i’m creating, half procedural bromelie, now working on these stemextensions to childplants.

Btw, i love these ideas i got from your post (and many other of yours :wink: ). I did not know the set curve normal node, that’s great!