11-07-2019 08:28 AM - edited 11-07-2019 08:31 AM
Have you had trouble getting the "Interpret As Unicode" property to work consistently? It always seemed buggy to me, but this morning I discovered that its not a bug, it's a feature (really!). It turns out that it's like font properties in that it applies to selected text; if no text is selected, changing "Interpret As Unicode" has no effect. To send new text in a particular format, do this:
To change the format of all existing text, do this:
11-07-2019 09:39 AM
11-08-2019 03:37 AM
+1 for NXG...
11-08-2019 06:16 AM - edited 11-08-2019 06:18 AM
paul, why is that one property node in your snippet yellow and the other two are brown?
I can't figure out how to use your snippet directly, so I tried to reproduce using the property nodes from the NI unicode tools:
11-08-2019 06:43 AM
@alexderjuengere wrote:
paul, why is that one property node in your snippet yellow and the other two are brown?
The brown nodes are for internal NI use only (super secret scripting).
There's also blue (scripting) and red (obsolete) nodes.
11-08-2019 10:33 AM
@alexderjuengere wrote:
paul, why is that one property node in your snippet yellow and the other two are brown?
I can't figure out how to use your snippet directly, so I tried to reproduce using the property nodes from the NI unicode tools:
The node is brown because the property "Interpret As Unicode" is designated private. Ordinarily I try to avoid using private properties, but since NI uses this one in an addon toolkit, I feel OK about it.
The "Interpret As Unicode" is definitely changeable back to False. Note however that setting the "Force Unicode Input" property to True changes "Interpret As Unicode" to True. When "Force Unicode Input" is true, when you're typing text into the string, it converts it to Unicode.
To use my snippet with a string control, get the Text reference from a string property node.
11-08-2019 11:30 AM - edited 11-08-2019 11:38 AM
@paul_cardinale wrote:The "Interpret As Unicode" is definitely changeable back to False.
yes, I made a copy and paste error in my snippet's comment ....
I want to write "you can go back to the previous state" 😐
@paul_cardinale wrote:
Note however that setting the "Force Unicode Input" property to True changes "Interpret As Unicode" to True. When "Force Unicode Input" is true, when you're typing text into the string, it converts it to Unicode.
thanks!
11-08-2019 12:40 PM
@paul_cardinale wrote:
Note however that setting the "Force Unicode Input" property to True changes "Interpret As Unicode" to True.
hm ... 🤔
11-07-2022 02:20 PM - edited 11-07-2022 02:24 PM
Where can I get a Text's "Interpret As Unicode" property node, i.e. not String's "Text.Interpret As Unicode"? I have not found one in ni_lib_unicode-2.0.1.6.vip or LV_Unicode-115-lv2009 (no password).zip
11-07-2022 03:02 PM
Here