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

Setting attributes of new objects

$
0
0

@JimCarruthers wrote:

Hi,

If I create a new curve or something from RhinoCommon(Python,) do I have to do something to it or actually add it to the document to be able to set/get the .Attributes object? I've got a curve I'm trying to set the layer and name on before adding it to the document and it's saying the object has no attribute 'Attributes'?

EDIT: got it, the "object attributes" object is separate from the curve, I pass both when I actually add the curve to the doc.

Thanks,
Jim

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5938

Trending Articles