When I use the scale handles to scale a Meta tube in object mode the object’s mesh is scaled and the round ends of the tube get stretched out. When the scaling is carried out in edit mode new faces are added to the Meta tube as I scale the object.
How can I access this sort of edit mode scaling by using a Python script? Using object.setSize( x,y,z ) is not the way to go.
I just started using Blender today because I wanted to import lines generated by a script in Rhino and add Meta Tubes around these lines in Blender.
It seems that using the api functions it’s only possible to add Meta Balls and not tubes. I thought I would just draw a tube in the viewport and then a Python script can translate, rotate and scale a copy of that Meta tube so that it fits around each line.
Thanks Martin! Now my script works. This is my second day of Blender and Python so maybe some things could have been done in a more clever in the script. Isn’t there any Method to find the start and end points of a curve? Now I used the following trick which seems to work in my case.
startPoint = curvedata.getControlPoint(0, 0)
end Point = curvedata.getControlPoint(0, 1)