thanks for your response. Like I said: using raw strings or replacing “\” by “\\” works for me.
However, the issue remains that the broken reference (using escape char ‘\’) was generated by Rhino’s native “text field” dialog (screenshot). I think this is not intended behavior
I know, it can be considered a bug but I’m not sure if it can or will be changed. In the meantime, by avoiding f,n,r for Fieldnames or using capitals will prevent you from having to edit it manually.
RH-72065 Textfields break when Fieldname starts with an escape character