Does someone know, why this simple script is not working?
import bpy bpy.context.area.ui_type = 'PROPERTIES' bpy.context.space_data.context = 'PARTICLES' bpy.ops.object.particle_system_add() bpy.ops.particle.new() bpy.context.area.ui_type = 'TEXT_EDITOR'
It works every SECOND time and then it works always until I quit blender. Next time it works every second time again.
I'm thankful for help :) Try to get it since about a year...