There is a straight line and I can get the position information of each point through vex.
I want to put the position (string) of each point at the corresponding position through copytopints, but I don’t know how to get this position information in the font node. Do you have any good ideas?
I can get position information in font node with only one point,
There is nothing you can do after the number of points increases, and the font node only has an output port and cannot be nested in a loop.
This completely solved my problem. This is the first time I know how to use font node -> Spare Input. Thank you very much for your help!
I hurriedly replied after seeing the effect. I only discovered the problem when I tried it myself (it's not a problem with tamte's answer, it's my own problem).
It turns out that "Spare Input" is a custom parameter interface, and its parameter type directly affects the final effect. This is very new knowledge to me. I will study it carefully and I think it will be used in other places.
HenDaSheng It turns out that "Spare Input" is a custom parameter interface, and its parameter type directly affects the final effect. This is very new knowledge to me. I will study it carefully and I think it will be used in other places.
here is some info on spare inputs https://www.sidefx.com/docs/houdini/model/compile.html#spare [www.sidefx.com] they are susally used within compiled blocks as that has many restrictions, but they are useful overall to refer to other nodes without having to type the path to the node in every expression
HenDaSheng It turns out that "Spare Input" is a custom parameter interface, and its parameter type directly affects the final effect. This is very new knowledge to me. I will study it carefully and I think it will be used in other places.
here is some info on spare inputs https://www.sidefx.com/docs/houdini/model/compile.html#spare [www.sidefx.com] they are susally used within compiled blocks as that has many restrictions, but they are useful overall to refer to other nodes without having to type the path to the node in every expression
I tried to perform certain processing on the string through vex (limiting the number of digits after the decimal point), but introducing new variables in the font node did not work.
I think it's something outside of my knowledge. I guess the problem is with the new variables because they don't appear in the spreadsheet when the font node is selected.
Jonathan de Blok You can use also use a merge node inside the for-loop. If you set the loop up in feedback mode the merge will add a font output in each iteration.
HenDaSheng I tried to perform certain processing on the string through vex (limiting the number of digits after the decimal point), but introducing new variables in the font node did not work.
I think it's something outside of my knowledge. I guess the problem is with the new variables because they don't appear in the spreadsheet when the font node is selected.
Use the points() expression instead as it outputs a string attribute. The Text field of the Font SOP is a string field.