i can repeat that, not only in python script but also when entering curly braces in the Name field of the object properties in the Rhino UI. Both worked in Rhino 5.
It turns out that curly and square brackets were not permitted in Rhino V5 names. You cannot put braces or brackets in a layer name. Howerver, there was a bug in the V5 object properties dialog that failed to check object names in some cases. In V6 all names go through the same name checker. The sentiment here is to make no changes in V6. The reason for the restriction is so command scripts containing names parse correctly.
Why do you need to use curly brackets in object names? What problem does this help you solve?
Hi @dale, the help file should mention naming conventions for object, layer, group and block names. This may be important for the new user text fields as well.
My team has been using the Name parameter of objects in Rhino 5 to store a JSON string (i.e. containing various braces) with some information about the object. This could be done using some arbitrary data parameter as well, but the advantage of using the Name parameter is that it will immediately show when hovering over the object in the viewport.
It’s merely a mild annoyance on our end, but it could possibly be of interest to have a “data” parameter which allows any string to be attached to an object, and have that show on-hover.