Is there an exposed function that will allow me to apply scale and rotation to a scene from python? (The equivalent of hitting Ctrl-A in non-edit mode)
Thanks!
Ryan
Applying scale and rotation from a script?
Moderators: jesterKing, stiv
Hello, Ryan. There doesn't appear to be a function already in place to do what you want. However, it's fairly straightforward to accomplish yourself.
There may be a better way to accomplish this, but it's the best I can come up with. Also, you might try the BlenderArtists.org forum:
http://blenderartists.org/forum/forumdisplay.php?f=11
It is a bit more frequented, and you may get more and/or better help there.
Levi
Code: Select all
def applyTransform(obj):
mat = obj.getMatrix()
me = obj.getData(mesh=True)
for v in me.verts:
v.co = v.co*mat
mat.identity()
http://blenderartists.org/forum/forumdisplay.php?f=11
It is a bit more frequented, and you may get more and/or better help there.
Levi
A three-legged stool never wobbles.