2
$\begingroup$

I'm really newbie at blender. So I want to change an object from a python script.

If I create a new project (Ctrl+N) and open python console, I can changing position of vertices:

bpy.data.meshes['Cube'].vertices[0].co.z += 20

But if I'm using .blend file with mesh from here: http://www.blender-models.com/model-downloads/humans/id/head-mesh/ I can changing vertices too

but I don't see anything new at 3D view window. enter image description here

What I'm doing wrong.

$\endgroup$
1
$\begingroup$

Please try your statements with the 3D View Window in object mode not edit mode.

enter image description here

|improve this answer|||||
$\endgroup$
  • 1
    $\begingroup$ An explanation of why this needs to be done might be helpful. $\endgroup$ – Ray Mairlot Dec 23 '15 at 14:37
  • $\begingroup$ You might add that in the comments $\endgroup$ – atomicbezierslinger Dec 23 '15 at 14:44
  • 1
    $\begingroup$ Well, you obviously know why otherwise why would you suggest them to do that? I'm just suggesting to flesh the answer out a bit. $\endgroup$ – Ray Mairlot Dec 23 '15 at 16:00
  • $\begingroup$ I do [not] know why everything happens in Blender at the software text level because I read approximately 00.00 % of the software text by choice. I may have a good educated theory. I answered to get him one step further. It is always a question of whether to write for the poser or some unknown readers. I estimate there will be few readers. Thus the short answer. Perhaps I want to hear your explanation. $\endgroup$ – atomicbezierslinger Dec 23 '15 at 16:52

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.