MoI discussion forum
MoI discussion forum

Full Version: Duplicated Solids.

From: PaQ
28 Jan 2010   [#1]
Hi Michael and Moiers,

Just wondering if there is any script, or maybe workaround, to easily delete duclicated volumes that perfectly overlap each other.
I did a mistake in one of my scene (quite huge with more than 1000 solids), and somehow I copy/paste the all scene twice (Yes I know .... .. .).

Now, let's say you don't have any undo available (because I save/quit for example), is it any way to quickly delete duplicated volumes ?

I had to click/select one solid, hide it , then delete every copys,... really huge time consuming to clean the whole scene .

Stuff like that often append in poly modeling, but there are often command/scripts to juste clean the whole mess.
From: Frenchy Pilou (PILOU)
28 Jan 2010   [#2] In reply to [#1]
is for this case that a list of objects is usefull with hours dating !
From: Paolo (PAOLOLOBBIA)
28 Jan 2010   [#3] In reply to [#1]
Hi PaQ,

After Paste, don't unselect the objects and give them a different name.
You will find the name in the objectbrowser.
From: coi (MARCO)
28 Jan 2010   [#4]
hi paq,

did you try the SelectParents-script?

http://kyticka.webzdarma.cz/3d/moi/#SelectParents

script:var gd = moi.geometryDatabase; var objs = gd.getSelectedObjects(); gd.deselectAll(); for ( var i = 0; i < objs.length; ++i ) { var parents = objs.item(i).getHistoryParents(); parents.setProperty( 'selected', true ); }

i duplicated a few solids on top of each other..selected the whole punch and ran the selectparents-script..ended up with just the "orginal" solids selected..

best of luck,
marco
From: Michael Gibson
28 Jan 2010   [#5] In reply to [#1]
Hi PaQ, I think Marco's idea of using history for selection is your best bet.

Right now there is not any general mechanism for detecting or removing duplicates.

- Michael