I have a few questions regarding what I’m currently working on:
A script with python to bake the referenced geometry into rhino and then export as obj.*
bakeAndExport.gh (9.7 KB)
First, the baking process seems generally fine. Although, because it is basically copied over from @piac 's script from 2013/2015, I am wondering if there are any updates to be done within the component since then:
Secondly, I added a few lines for the exporting process from @clement 's code here:
However, a property doesn’t seem to work (line 25 in script), and returns error stating that the object is read-only:
Rhino.FileIO.FileObjWriteOptions.ObjGroupNames = 1
I would like to export the meshes as separate objs similar to selecting the “Layers as OBJ groups” options in Export Options in Rhino WIP, so that when they are imported back in later they could be separate meshes.
*Please toggle the bake first before toggling the export.
Thanks a lot!