Show messages: All
1-6
7-9
From: Michael Gibson
Hi Peer,
> And that works fine for a standalone selected object, but it doesn't seem to do anything
> if just a face of a solid is selected.
You can't remove a sub-object from the geometry database, you can only remove a top level object from the geometry database.
You can get the top level object that a sub-object is contained inside of by using obj.getTopLevelParent();
- Michael
From: pressure (PEER)
Thanks Michael for your fast and thorough answer! Needing to separately remove the input object makes sense now. And thanks for pointing out that I need to remove the top level parent object. That probably explains an issue I saw when testing my script on a solid contained by a Group object.
- Peer
From: bemfarmer
Thank you Michael and Peer for the improvement to understanding. I edited my posts to remove or modify my worst statements.
- Brian
Show messages: All
1-6
7-9