Featured post

new redirect for blender.org bpy docs.

http://www.blender.org/api/blender_python_api_current/ As of 10/11 november 2015 we can now link to the current api docs and not be worr...

June 22, 2013

adding custom modules to blender python directory for easy import

example, local absolute position of 1 selected vertex
"""
in 2.6x/scripts/ i added ztools and a script inside that folder so I now have
2.6x/scripts/ztools/reposition.py

In blender console I can now import the functions from reposition.py and use them conveniently with autocomplete

>>> from ztools.reposition import move
>>> move(1,0,0)
"""

1 comment:

  1. check if something is in Edit mode needed?
    if type(obj) != type(None):

    ReplyDelete

Please use Blender.StackExchange.com for python scripting questions unrelated to this post.