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

Attribute User Text as Python dictionary

$
0
0

Hello!

I am trying to retrieve all objects from the rhino document in order to get their Attribute User Text as a Python dictionary. No luck so far…

What I have been trying is this:

for rObj in Rhino.RhinoDoc.ActiveDoc.Objects:
print rObj.Attributes.UserDictionary.Values

I get what looks like an empty dictionary - am I approaching this the wrong way?

Best
Frans

3 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 5745

Trending Articles