hi i try a transform with Blender 2.5 and python api like this :
x=1
for u in range(1,10):
bpy.ops.transform.shrink_fatten(value=x, proportional='DISABLED',
proportional_editing_falloff='SMOOTH', proportional_size=1, mirror=False, snap=False)
time.sleep(2)
x+=1
the screem did not redraw the and the object too, who got a solution
in old blender i use
I don’t know the answer but I suggest to take a look to the operator_modal_draw.py that ships with Blender/scripts/templates.
Basically you add a function that will be called whenever a pixel need to be drawn on screen.
# Add the region OpenGL drawing callback
# draw in view space with 'POST_VIEW' and 'PRE_VIEW'
self._handle = context.region.callback_add(draw_callback_px, (self, context), 'POST_PIXEL')
for u in range(1,10):
bpy.ops.transform.shrink_fatten(value=x, proportional=‘DISABLED’,
proportional_editing_falloff=‘SMOOTH’, proportional_size=1, mirror=False, snap=False)
Add the region OpenGL drawing callback
draw in view space with ‘POST_VIEW’ and ‘PRE_VIEW’