when both are off the behavior is unchanged. This is needed when rendering alpha text so its possible to have a single layer of faces but use the bevel option to make text thicker. adding a rim on the back when back is disabled also doesnt make much sense IMHO. minor python edits too.
		
			
				
	
	
		
			30 lines
		
	
	
		
			548 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			548 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import bpy
 | |
| 
 | |
| 
 | |
| # print all objects
 | |
| for obj in bpy.data.objects:
 | |
|     print(obj.name)
 | |
| 
 | |
| 
 | |
| # print all scene names in a list
 | |
| print(bpy.data.scenes.keys())
 | |
| 
 | |
| 
 | |
| # remove mesh Cube
 | |
| if "Cube" in bpy.data.meshes:
 | |
|     mesh = bpy.data.meshes["Cube"]
 | |
|     print("removing mesh", mesh)
 | |
|     bpy.data.meshes.unlink(mesh)
 | |
| 
 | |
| 
 | |
| # write images into a file next to the blend
 | |
| import os
 | |
| file = open(os.path.splitext(bpy.data.filepath)[0] + ".txt", 'w')
 | |
| 
 | |
| for image in bpy.data.images:
 | |
|     file.write("%s %dx%d\n" % (image.filepath, image.size[0], image.size[1]))
 | |
| 
 | |
| file.close()
 | |
| 
 | |
| 
 |