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
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.
On my phone so I can’t go into much detail, but the easiest way would be to use a modal operator. Put your call to get into object mode and create the sphere in the invoke function, and control the scale in the modal function. Check out the simple modal operator template for an example of how to do it.