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

.3dm + Python + UserData

$
0
0

@tom_svilans wrote:

Hi,

Haven't been able to find an answer to this particular issue.

I am creating a .3dm file for each group of objects in a particular scene through a Python script.

   f = Rhino.FileIO.File3dm()
   fwo = Rhino.FileIO.File3dmWriteOptions()
   f.Objects.Add..
   f.Polish()
   f.Write(path, fwo)

What I can't seem to find is a way to add in UserData in this way... The File3dm object doesn't seem to have any members for custom data, just Notes.

Is there another similar way that I could embed custom data within a .3dm file?

The reason for all of this is to store the file path to the parent Rhino file, a transform between the group of objects and their place in the parent file, other variables that are specific to that cluster, etc.

Thanks!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 5877

Trending Articles