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

Getting Object Attribute Data in Python using Key

$
0
0

Hello, I have been toiling around quite a bit trying to figure out how to read a value from the ‘Attribute User Text’ tab of an object once it is selected, where the attributes dictionary is. My objects on my model all have an attribute key called “json” and I want to be able to pull that value out but whenever I use the rs.GetUserText() function, all I receive is ‘None’. I have tried using rs.GetDocumentUserText() and this does not get me what I want either. Can anyone please provide some direction?

My end goal with my script is to select all object, get their json data from this attribute and write it to a json file.

Thank you for your time.
-Arman

2 posts - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5800

Trending Articles