6
$\begingroup$

I'm new to scripting in blender. Is there a way to proportional-edit a vertex through python?

I want translate a vertex along z, with all vertexes between that and local_Z=0 moving accordingly like they would in proportional editing

This is a graphical representation: enter image description here

$\endgroup$
3
$\begingroup$

look at the doc: http://www.blender.org/api/blender_python_api_2_76_release/bpy.ops.transform.html?highlight=proportional#bpy.ops.transform.transform

By the way you can look in the 'action log' of the info editor (window header). enlarge it, sroll down, select entry it with your select mouse button and use CtrlC to copy the command for your action

$\endgroup$
  • $\begingroup$ Doesn't seem to be working. I just get the dreaded: convertViewVec: called in an invalid context whenever I try using a function like this in my script: bpy.ops.transform.translate(value = vtrans, constraint_axis=(False, False, False), ... $\endgroup$ – tod doeh Feb 4 at 17:15
  • $\begingroup$ @toddoeh Proportional editing needs to be run in the context of the 3d view. The text editor or python console is not a 3d view. Related blender.stackexchange.com/questions/75960/… $\endgroup$ – batFINGER Feb 5 at 3:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.