Page 1 of 1

RoadElement Curve {.~1|.}~1

Posted: Wednesday 18 December, 2013 - 13:18
by reinerbuhl
During working with ED (TransSim-Node kit), some RoadElement curves overwrite the code I entered in the "send to" field with the following: {.~1|.}~1
What is wrong there?
After that happens once, I am not successfully able to change the code.

Re: RoadElement Curve {.~1|.}~1

Posted: Friday 20 December, 2013 - 11:08
by Markus Holzner
That can happen indeed when using 4DScript (4DS) code consisting of multiple lines and/or comments within.
This is a known problem for SmartEditField GUI components like the "SendTo".
Because of its smart features, the comments for example are lost when coding 4DS.

As a workaround (for substantial code) I would suggest to put the code in a function (using the function editor atom or atom editor) and use that function within the "SendTo"