2
$\begingroup$

I have a mesh line. On the left, you can see the x-values in the position attribute. I want to use those x-values and display them as text by using the text nodes. Without having to type out each number.

Or, is it possible to generate any sequence of numbers with text nodes?

$\endgroup$
3
  • $\begingroup$ AFAIK not in GN at the moment. But you can do this with Animation nodes if you are open for this add-on - which is just amazing by the way. $\endgroup$
    – Chris
    Jan 24 at 6:48
  • $\begingroup$ Thank you Chris. Can you link animation nodes into a GN node tree? $\endgroup$ Jan 24 at 7:01
  • $\begingroup$ no you can't. But AN puts the result in a collection, and this collection can be used by GN. So it is in fact connected (somehow). $\endgroup$
    – Chris
    Jan 24 at 7:17

1 Answer 1

4
$\begingroup$

Node setup:

enter image description here

By changing the integer value you can decide how much numbers should be generated. The object transform output isn't really necessary. I just put it in that you can see the numbers.

result:

enter image description here

enter image description here

Note: Animation nodes is so friendly, it even puts the resulting texts in an own collection, which you can use in GN.


So here you see a combination of GN + AN.

Because AN is executed automatically, every change in AN will reflect in GN.

So i distributed the numbers on a cube randomly, and as you can see, if i change the number of numbers, it will be changed in GN too.

enter image description here

$\endgroup$
2
  • $\begingroup$ Thanks, Chris, you are a very knowledgeable person. $\endgroup$ Jan 24 at 7:17
  • $\begingroup$ @MatheMatics: Thank you very much! If my answer helped you, please click on the checkmark left to my answer. i updated my answer with a simple GN + AN setup gif. $\endgroup$
    – Chris
    Jan 24 at 7:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.