「Dev:2.5/Py/API/Generating API Reference/Contribute」の版間の差分

提供: wiki
移動先: 案内検索
(bpy.types.SpaceView3D.draw_handler_add)
 
(1版 をインポートしました)
 
(相違点なし)

2018年6月29日 (金) 04:37時点における最新版

Python API docs todos

If you find undocumented items in Blender 2.5 Python API, you can suggest their docstrings content here. After your doc will be put in the code it will be cleaned from here.

Thanks!

mathutils.Vector.ww

result: Vector((w,w)) w the w component of 4D Vector Vector((x,y,z,w)).

       x, y, z and w are all floats

bpy.ops.mesh.duplicate_move

Duplicates the selected geometry and translates the copy.

bpy.ops.armature.subdivide

Inserts the user specified number of new bones in place of each selected bone. The bone roll of the original bones will be used for all new ones.

bpy.ops.mesh.select_nth

Select every n number of vertices

bpy.ops.image.new

Create Image

bpy.ops.armature.bone_primitive_add

Add a new bone to the selected armature in the edit mode.

bpy.ops.object.game_property_new

Create a new game property on the active object. The new property is added to the end of the object's property list. New properties will be named 'prop', 'prop0', 'prop1' etc.

Example usage:

bpy.ops.object.game_property_new()
prop = bpy.context.object.game.properties[-1]
prop.name = 'Foo'

bpy.ops.mesh.vert_connect

mathutils.Vector.ww

Return a 2D Vector with two times the fourth (= w ) component of the original as components.

If v = Vector((1,2,3,4)) then v.ww gives Vector((4.0,4.0))

bpy.ops.uv.reset

Adapt UVs to the UV editor's area.

bpy.ops.object.duplicate_move

Example usage:

 bpy.ops.object.select_pattern(pattern="Cube", case_sensitive=True, extend=False)
 bpy.ops.object.duplicate_move(TRANSFORM_OT_translate={"value":(1, 1, 1)})

bpy.types.SpaceView3D.draw_handler_add

draw_handler_add(yours_definition, (variable1, veriable2, ... ), 'WINDOW', 'POST_PIXEL')

your_definition is:

   def your_definition(veriable1, veriable2, ... ):
   ...