7
$\begingroup$

I have a displaced grid 200x200 points. Then I have the same grid but narrowed selection on which I instance the lines And the strings.

render view My question is... Is there any possibility to get different values (based on whatever) in the instanced strings? Because the Value to string node doesn't support field input.

enter image description here

Where in the node tree should I integrate the random value to the string? Is it possible? Thanks.

enter image description here

$\endgroup$
6
  • $\begingroup$ The ID input for the Random Value is the one to be used for getting different values. $\endgroup$ Commented Feb 23, 2022 at 14:28
  • $\begingroup$ The seed part is easily solved, the problem is there is no way to instance a customizable number of strings with customizable values in a single node tree (String to Curves doesn't support fields neither does Value to String) I think it will not be possible until string attributes are supported natively. $\endgroup$
    – Gorgious
    Commented Feb 23, 2022 at 14:33
  • 2
    $\begingroup$ tried a dumb workaround for this by stacking digits, made all 10 digits individual objects, but also had to instance them 4 times for each location, otherwise the random pick would not work right... here the blend $\endgroup$
    – alambre
    Commented Feb 23, 2022 at 16:40
  • $\begingroup$ @calambre great idea! $\endgroup$
    – 3Dhedgehog
    Commented Feb 23, 2022 at 17:07
  • $\begingroup$ thanks @3Dhedgehog! but it's workaround, I'm sure they will add a way to do it $\endgroup$
    – alambre
    Commented Feb 23, 2022 at 20:20

4 Answers 4

4
$\begingroup$

You can input bunch of any geometry elements into "Instance On Points" node via "Geometry To Instance" node.

All setup:

enter image description here

You can add hundreeds "text" groups to this node setup. If you do so, the output numbers will be very random. The only problem is that you should manually create all the list.

Inside "Text" Group:

enter image description here

$\endgroup$
1
  • $\begingroup$ That is exactly what I did after posting the question lol... Its not Ideal, but it will do the trick. I hope there will be more options for strings in the future. Thanks anyway. $\endgroup$ Commented Feb 24, 2022 at 9:43
1
$\begingroup$

enter image description here

Another workaround is to use SVerchok nodes for this case. SVerchok also able to transfer custom value for Geometry Nodes.

I uploaded a video on this.

$\endgroup$
1
  • $\begingroup$ Just out of interest, what is the highest currently supported Blender version in conjunction with Sverchock Nodes? $\endgroup$
    – quellenform
    Commented Nov 24, 2022 at 0:39
1
$\begingroup$

Node Group of an Attribute Visualizer

This is quite doable with geometry nodes, just not as easy. I have developed a method to visualize numeric attributes in the 3D view.

Basically, it takes an arbitrary number, calculates the length of its digits, duplicates the input geometry points as many times as there are digits, and then creates instances of text curves to those duplicated points. Based on the indices of the duplicated points and the input number, it selects the correct curve number from the numbers 0-9.

I know this sounds very lengthy, but here I have posted a screenshot of my node tree. If I knew how to explain it in a shorter way, I would do it here. For a full explanation of why this works, check out my video tutorial.

https://youtu.be/_W47HfoeFsg

P.S. If you add a Mesh to Points node before you feed the geometry into this node group, and change the domain type to *Faces" or Edges, you can also visualize their attributes. I hope this helps you.

Node Group of an Attribute Visualizer

$\endgroup$
0
$\begingroup$

One can pass a string of all the digits to the String to Curves node and sample single characters by checking the Pick Instance box of the Instance on Points node as shown in the image below.

You will still have to manually assemble larger numbers, but it is a neater solution.

node setup digit counter

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .