Hello,
I’ve been trying to parametrically generate some 3D shapes in Blender (slightly different from Blender’s base primitives). To do this, I’ve been using curves with bevel objects and taper functions that I am defining programmatically. Sometimes I change the curve resolution parameter for my main shape from the default value of 12 to a value of 1. The way my script works, I generate the shape and then immediately convert it to a mesh and render it. However, the change to the resolution parameter (curve.resolution_u and/or curve.render_resolution_u) is not reflected in the resulting mesh.
I am nearly sure that I need to invoke some update / redraw function, but I am at a loss as to how to do it. I have tried:
1
C.scene.update()
2
curve.update_tag()
C.scene.update()
3
[tried looking for a way to update / redraw the properties panel]
prop_area = [p for p in C.screen.areas if p.type==‘PROPERTIES’][0]
prop_area.tag_redraw()
C.scene.update()
If I simply click on the Preview U field in the Curve Properties tab, the view updates.
… Help, please?