Remove Duplicate Objects in the Scene
See original GitHub issueI am currenting using iThor for some object navigation tasks. I need to generate some duplicates of objects in a given scene. However, whenever I reset the environment using controller.reset()
, the duplicated objects (named with “random_copy”) still appear in the scene. Is there a conveninent way that I missed in the documentation that could auto-remove the duplicated objects? If not, I guess I would have to manually remove them by search for their names.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Unlinking objects from duplicated scene
To unlink a duplication, i.e. make it single user that won't depend on its linked duplications, select your object, go to the header...
Read more >Delete Multiple Duplicate Objects - Modeling
The Outliner may help you out in identifying and deleting the duplicate objects. Hotkey is Shift F9. Shift LMB on the icons to...
Read more >Removing Duplicates on Load Scene
I'm currently working on a scene manager that will load a new scene and place the player at a spawn point. Currently it...
Read more >How to delete duplicate objects in 3dsMax?
I have thousands of duplicate objects with unique names in the scene. Tell me some script to remove duplicates. Thank you.
Read more >java - How to remove duplicate objects in a List<MyObject> ...
Here is one way of removing a duplicate object. The second one will be removed because it is a duplicate of the first...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you for your response! That should answer my questions. And I am looking forward to further updates you mentioned!
Hey!
At the moment, there is no “action” per see that removes duplicate objects. We just reload the entire scene when
Reset
is called, which, in turn, removes duplicate objects (along with all other modifications). See: https://github.com/allenai/ai2thor/blob/master/unity/Assets/Scripts/AgentManager.cs#L478At the moment, there is only support for duplicating objects that already exist in the scene. However, many of us are interested in being able to spawn in any object to any scene, and it’s pretty high up as one of the things I’d love to support! I will follow-up on this thread when it’s possible, but there’s no immediate timeline.