connomar
Resource contributor
		- Messages
- 266
- Country
 
I am working on a project that will generate ground markings automatically.  One thing I got tripped up by early on was that MSFS requires a textured plane, rather than a vector colored plane for the Scenery/PolyMesh.
I have got very close to my objective, whilst learning Python at the same time, so the errors are harder to trace.
The issue I am facing is that whilst one can see the code steps that result from manually create the material, making it msfs_standard and attaching the texture file, when doing this in code,
:
bpy.context.object.active_material.msfs_material_type = 'msfs_standard'
I get the error:
AttributeError: 'NoneType' object has no attribute 'msfs_material_type'
I can find no documentation to this effect, but it seems likely that there should be an import or a from statement that links to the exporter. Does anybody have any idea.
				
			I have got very close to my objective, whilst learning Python at the same time, so the errors are harder to trace.
The issue I am facing is that whilst one can see the code steps that result from manually create the material, making it msfs_standard and attaching the texture file, when doing this in code,
:
bpy.context.object.active_material.msfs_material_type = 'msfs_standard'
I get the error:
AttributeError: 'NoneType' object has no attribute 'msfs_material_type'
I can find no documentation to this effect, but it seems likely that there should be an import or a from statement that links to the exporter. Does anybody have any idea.
 
	 
 
		 
 
		
 
 
		