Request for a script to rename sequentially selected objects

 From:  Michael Gibson
11554.2 In reply to 11554.1 
Hi Moi3dFan,

re:
> Is there any possibility to create a script that will number objects depending on the sequence of clicking on them?

Try this:

script: /* Set name by selection order */ var objs = moi.geometryDatabase.getSelectedObjects(); objs.sortBySelectionOrder(); for ( var i = 0; i < objs.length; ++i ) { var obj = objs.item(i); obj.name = i+1; }

- Michael

EDITED: 27 Sep 2024 by MICHAEL GIBSON