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

How to keep UserDictionary on DuplicateSegments

$
0
0

@flokart wrote:

Hi all,

is there a way to manipulate objects and keep UserDictionary on SubObjects?
I try to get DuplicateSegments while keeping UserDictionary on all Segments.

sc.doc = rh.RhinoDoc.ActiveDoc
t = sc.doc.Objects.FindId(x)
t.UserDictionary.Set("T",5)
t = rh.Geometry.Curve.DuplicateSegments(t.Geometry)
print t[0].UserDictionary.TryGetValue("T")   

Capture

Maybe its not the best idea to keep UserDictionary on Objects that get manipulated.

Any help is welcome

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 5873

Trending Articles