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

Get Usertext from object in a Block

$
0
0

@NavArch wrote:

Hi there,
I'm trying to figure out how to access usertext info for a selected object inside a block. The block is created by a separate user and I am inserting their file (embed/link) into my model. I would like to be able to access the usertext data in the objects in the imported block.
In Python I thought that:

rs.GetObject(filter=28)

would work, but instead the block and all of its objects are ignored.

Besides exploding the block (which I don't want to do because it will break the link) is there some other way to get into the block and allow the user to manually select an object (using rs.GetObject() or another command) to query the usertext?

Thanks in Advance

Posts: 8

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles