Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5745

rs.ObjectName() doesn't work with strings containing curly braces in Rhino 6?

$
0
0

@toivosawen wrote:

This is my original post, more information in reply below.

(I’ve tried the following code in my newly installed copy of Rhino 6:

    import rhinoscriptsyntax as rs
    ...        
    line = rs.AddLine(point_a, point_b)
    name = "my line"
    rs.ObjectName(line, name)
    print rs.ObjectName(line)

Expected output:

my line

Actual output:

None

What gives?)

Posts: 4

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 5745

Trending Articles