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

rs.ObjectName Throwing 'str is not callable' Error

$
0
0

Here is the relevant code.

    fingerRail = rs.AddCircle(rs.WorldZXPlane(), rad)
    #name = 'Size {:.3f} + {:.3f}'.format(opt.Size, offset)
    name = 'fred'
    rs.ObjectName(fingerRail, name)

fingerRail is a populated GUID and name is a string when it calls:

But I get a ‘str is not callable’ error and the name is not changed.

image

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 5816

Trending Articles