The idea is to traverse through the object hierarchy and then access all geometries and materials. Please try:
Instead of using scene, use the code with your model variable.
The idea is to traverse through the object hierarchy and then access all geometries and materials. Please try:
Instead of using scene, use the code with your model variable.