I have a list of variables that I want to apply to text nodes. These variables are numbers. I want to do it via API because there are a lot of them. The problem is that when I try to bind these variables using the ânode.setBoundVariableâ function, the resolved type for the variable is âFLOATâ and not âSTRINGâ, which is correct, but this prompts the error : âin setBoundVariable: variable of resolved type âFLOATâ cannot be bound to this fieldâ. I undestand that the text node was expecting a string but I can bind the number variable to text manually in the software and I even have a scoping section for âtextâ when opening the options for the number variable.
Solved
Cannot assign variable that is resolved as FLOAT to text node via API
Best answer by djv
Hey @Calin_Stefanescu, thanks for reaching out!
This is actually an intentional product limitation. The UI supports binding number variables to text content, because we can have a stringify expression behind the scenes. But since expressions canât be used for binding in general, the plugin API doesnât expose expressions, only direct aliases.
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
