when selecting multiple objects for mesh export, is there a way to control the mesh order ?
Hello - I am not sure what you are asking - can you elaborate?
-Pascal
i select a number of meshes to export as subsets in one obj file
the order of the subsets is important when re-importing them (to vvvv)
order of items at export tends to be the order of last selected item, which, if not done manually, is not possible to keep consistent
i am after controlling an invisible index number of selected items before export
does the question make sense ?
Hi - there is no way to control that order other than what you have been using.
-wim
Hello - if you are window selecting, then I believe the order is taken from the object list in Rhino, that is, last created (or edited) is at the top of the list. How do you want to select? If you wanted to select by group or layer or material, I suppose it would be possible to script it where the script would juggle things to the order or grouping that you like.
-Pascal
i need a system for consistent export order
between exports, i edit the objects, so the order always changes
sorting order could be along an axis
Hello- try this Python - it might do it:
import rhinoscriptsyntax as rs
def OrderedExport():
ids = rs.GetObjects("Select objects to export", preselect=True)
if not ids: return
dict = {}
for id in ids:
geo = rs.coercegeometry(id)
pt = geo.GetBoundingBox(True).Center
dict[pt.X] = id
X = sorted(dict.keys())
rs.UnselectAllObjects()
for x in X:
rs.SelectObject(dict[x])
rs.Command("Export")
if __name__ == '__main__':OrderedExport()
-Pascal