You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello everyone,
I used the PythonAPI to spawn a prop, namely, the "static.prop.ironplank". How can I then get the ID or the name of the prop in my current world?
I used this code:
names = world.get_names_of_all_objects()
for n in sorted(names):
print(n)
and manually searched through the values and found that my prop is called "StaticMeshActor_2147479215".
How can I do it without manually searching through the names of all objects?
Hi,
I want to then change its texture using world.apply_color_texture_to_object('StaticMeshActor_2147479217', carla.MaterialParameter.Diffuse, texture)
and unfortunately, your solution is not applicable in this case.
I guess I have to either use UE editor to change its name or just look for a StaticMeshActor that has the longest number in front of it.
Hi,
you could look in the actor.attributes if the object name is included, or maybe it is somewhere else in the actor.
I would need to check the actor class myself to be sure.
Hello everyone,
I used the PythonAPI to spawn a prop, namely, the "static.prop.ironplank". How can I then get the ID or the name of the prop in my current world?
I used this code:
and manually searched through the values and found that my prop is called "StaticMeshActor_2147479215".
How can I do it without manually searching through the names of all objects?
This is the code that I used to spawn the prop
and if I print
ts
I get:Actor(id=26, type=static.prop.ironplank)
Which is not what I am looking for
The text was updated successfully, but these errors were encountered: