Hello
I want creat such a simple script.
Script is going to object mode, creat ico sphere, User is changing size of ico sphere, by new command like resize, and after he press lmb to accept new size, the next thing what script will make will added modifier Smooth.
I heart that there is such a thing like wait_for_input. But I don’t know when I can put it, or where ?
My script
def execute(self, context):
bpy.ops.object.mode_set(mode='OBJECT')
bpy.ops.mesh.primitive_ico_sphere_add(enter_editmode=False, location=(24.1231, -188.457, -593.71))
bpy.ops.object.modifier_add(type='SMOOTH')
return {'FINISHED'}
I know that I should put bpy.ops.transform.resize but I don’t know how or where insert wait_for_input.
I just want to make that when I accept size, the next operation will be adding a Smooth.
Thanks for help
and greetings