Skip to content

Can we change the feature of the objects in scenes ? #535

Answered by mattdeitke
liuxz-cs asked this question in Q&A
Discussion options

You must be logged in to vote

can change the texture or color or other feature of the objects in scenes. If can, how can we do that ?

Textures cannot currently be changed. For colors, there is a currently undocumented function called ChangeColorOfMaterials that could work well. But, it doesn't currently allow you to reset the scenes to their original colors after initially changing randomizing a scene's colors.

Here's a brief example:

which can be reproduced with

from ai2thor.controller import Controller
import matplotlib.pyplot as plt

c = Controller()
scenes = [f'FloorPlan{i}' for i in ['28', '201', '301']]
fig, axs = plt.subplots(3, 3, figsize=(10, 10))
for i, scene in enumerate(scenes):
    c.reset(scene)
    for 

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@liuxz-cs
Comment options

@mattdeitke
Comment options

@liuxz-cs
Comment options

Answer selected by mattdeitke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #535 on December 01, 2020 08:04.