How do I get text from a DAT into the text field of a font SOP?
Seemed like it would be
chop("null3/$V")
or chop("null3/$PN")
but nothing’s working.
Also, where could I have found this answer without pinging the forum?
Many thanks.
-russ
How do I get text from a DAT into the text field of a font SOP?
Seemed like it would be
chop("null3/$V")
or chop("null3/$PN")
but nothing’s working.
Also, where could I have found this answer without pinging the forum?
Many thanks.
-russ
If the text is coming from a DAT directly, use the tab() expression.
For table formated DATs:
tab("datname", row, column)
For text formatted DATs, they are always considered to be a single cell table, row =0 and column = 0 so:
tab("datname", 0, 0)
The chop() expression is used to pull data from CHOPs.
Heroic goodness. Most excellent. Thank you.
I’d tried replacing chop() with dat(), as it seemed the logical equivalent.
yeah, tab() comes from a short form of “table”. Use tab() to get values from DATs, and use table, tabinsert, tabcell, and tabdelete commands to change values in DATs.
Also, all the commands and expressions are listed under the Help menu if you select “Commands and Expressions”.
If you prefer the textport (I do for its smaller size), type help for command help, exhelp for expression help. To get details on a single command or expression, type help commandname or exhelp expressionname.
greetings,
So I have the following in my Txt SOP Text parameter:
tab("table1", 1, 0)
first of all, is this considered a ‘script’ ?
secondly, how do I replace the above value “1” with output from a CHOP ?
Do I define the chop output as a variable(how?), then replace value “1” with “$variable” ?
regards,
cod
So I found a solution- dunno if its the most efficient one but it seems to have no issue cycling thru various characters and creating the textSOP(at least before I try to extrude it). Using Ben’s notes above I used:
tab("select1", 0, 0)
I suppose another way to get specific font characters would be to somehow call them with an ASCII code number of some sort ?
variabletextSOP.4.toe (6.37 KB)
you can use tab("table1", chop("null1/chan1"), 0)
.
thanks for that