Skip to content

How to change the sub-object texture in a loaded usd file. #2388

Closed
@kaijieshi7

Description

@kaijieshi7

Hi, I load the usd file as following

room = RigidObjectCfg(
prim_path="{ENV_REGEX_NS}/room",
spawn = sim_utils.UsdFileCfg(
usd_path=f"/home/kaijie/Desktop/one_room.usd",
rigid_props=sim_utils.RigidBodyPropertiesCfg(
kinematic_enabled=True
),
),
init_state=RigidObjectCfg.InitialStateCfg(pos=(-9.5, -11, 0)),
)

Then, the I can get the room by 'room=env.scene['room']'.
My aim is to change the texture of table in the room. The table path is like 'room/table'.
How can I achieve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions