hello. i want to create the two upper objects from the screenshot with dynamic patching. the problem are the semicolons and the line breaks of the second object. does anybody know how to solve that?
-
semicolon and line break in messages for dynamic patching
-
@Jona Hi, I don't know how to dynamically create objects with semicolons but actually you don't need to use semicolons to create the [ofLoadPath2d] object.
The reason semicolons are commonly used in ofelia is for a better readability. And it is completely optional, except when using [ofExpr] or [ofDefine] where semicolons are used to separate multiple equations.
You can just create the object [ofLoadPath2d @path5 rect 580 30] without using the semicolons.
You can read the documentation about this from either [ofWindow] or [ofelia] object's help file.
Please find the [pd common_traits] subpatch on the top right section in the help file. -
@cuinjune thanks a lot. good to know, then it works like it is
-
Just to let you know, if you did want to dynamically create objects with semi-colons, you can do this using ASCII code 59. You need to use [else/fromany] or some other object to convert from ASCII to text. Semi colons then become normal list items.
ASCII code:
52 = "4"
32 = " "
59 = ";"
54 = "6" -
@Jona You can also use [list tosymbol] if you want to do it vanilla-syle
-
@weightless @LiaMG thanks for your solutions