URCap API Expression Builder

I’m building a URCap in which I have a program node. This program node creates a child node consistent of an assignment node. In this assignment I create an expression using the ExpressionBuilder that looks similar to “test.helloworld()” (please note the dot between the “test” and the “helloworld()” method call, however the expression validator will not accept that I programatically create an assignment with a dot inside it. However from polyscope it is (obviously) allowed from user input. Could you please update the validator to allow dots inside Expressions?

1 Like

Hi @nily

Thank you for you feedback. I see the issue and will report it. For the meantime I will suggest you make a workaround where you add the following URScrip to you preamble

def test_helloworld():
  return test.helloworld()
end

and then create an expression with the function.

Ebbe

1 Like

Thanks :slightly_smiling_face: :+1: right now I’m just relying on the user to change ‘+’ to ‘.’ but might change it to your solution at a later point.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.