Open Dongzhou-1996 opened 2 years ago
Same problem here. Just found out that the problem is that the PyPI version of the AirSim is 1.7.0. In the 1.8.1 they added a new parameter for both simSetObjectMaterial and simSetObjectMaterialFromTexture. You can build the python library yourself and then it should work.
@Dongzhou-1996 just update the package, it should work now.
Bug report
What's the issue you encountered?
I want to set the material of a StaticMeshActor named
Bennu
by using the APISimSetObjectMaterial()
andsimSetObjectMaterialFromTexture()
. The code is provided as follows:However, both two API do not work and report following errors (ps: the 'sample_texture.jpg' file is added in my python project directory):
Settings
The settings of StaticMeshActor
Bennu
is shown as follows: