Campbell Barton
f828a318f5
include an example in the api docs for using bmesh operators to make 2 links in a chain.
2012-11-28 15:08:45 +00:00
Campbell Barton
4fe35721e6
bmesh operator api reference - add in 'bmesh' arg at the start of each operator, also use :class: references.
2012-11-28 01:14:11 +00:00
Campbell Barton
9775f1d743
generate api reference for 'bmesh.ops', restructured text is extracted from bmesh_opdefines.c.
...
see:
http://www.blender.org/documentation/blender_python_api_2_64_9/bmesh.ops.html
2012-11-27 06:56:51 +00:00
Campbell Barton
0a5d44588c
switch verious references from py3.2 -> 3.3 or just 3.
2012-11-26 13:58:06 +00:00
Mitchell Stokes
f22fb939d3
BGE Docs: Adding some docs for some of the Steering Actuator attributes. I grabbed the docs from the UI descriptions from RNA for the Steering Actuator. However, these aren't the best descriptions, and both the UI descriptions and the docs could use some attention. Also, steeringVec and facingMode didn't have corresponding UI elements, so I've left them undocumented for now. Someone who knows what they do can hopefully document them.
2012-11-23 07:47:53 +00:00
Mitchell Stokes
c6f98cfa95
BGE Docs: Adding docs for bge.logic.NextFrame() and bge.logic.PrintMemInfo() based on their doc strings. There was also an :rtype: in the bge.logic.setExitKey() docs that should have been :type:.
2012-11-22 22:38:31 +00:00
Mitchell Stokes
de57d61f62
BGE Docs: Adding docs for KX_Scene.drawObstacleSimulation() based on its doc string.
2012-11-22 22:25:12 +00:00
Mitchell Stokes
ff94827965
BGE Docs: Documenting missing Sound Actuator attributes based on RNA UI strings.
2012-11-22 22:13:27 +00:00
Mitchell Stokes
f90298bc0a
BGE Docs: Adding docs for the KX_GameObject.playAction() play_mode constants.
2012-11-22 21:52:30 +00:00
Mitchell Stokes
2765f1fffc
BGE Docs: Reordering the "Various" constants so they are in alphabetical order.
2012-11-22 21:37:12 +00:00
Mitchell Stokes
899290dd47
BGE Docs: Moving the KX_ArmatureSensor.type constant docs from bge.types.rst to bge.logic.rst where the rest of the constants docs are.
2012-11-22 11:09:42 +00:00
Mitchell Stokes
989b5983c8
BGE Docs: Changing ROT_* Armature Channel constants in the docs to be ROT_MODE_* to match the actual constants from bge.logic.
2012-11-22 09:20:36 +00:00
Mitchell Stokes
9b571c2d54
BGE Docs: Fixing indentation.
2012-11-22 09:12:21 +00:00
Campbell Barton
762016c746
indentation edits
2012-11-22 08:30:54 +00:00
Mitchell Stokes
74ffa7bb8a
BGE Docs: Adding some basic docs for the KX_STEERING_* constants. Right now just their names and values are in the docs, not what they actually do.
2012-11-22 08:22:46 +00:00
Mitchell Stokes
d9f6edff14
BGE Docs: Moving the BL_ArmatureChannel.rotation_mode constant docs from bge.types.rst to bge.logic.rst where the rest of the constants docs are.
2012-11-22 08:16:30 +00:00
Mitchell Stokes
8dd96bcefb
BGE Docs: Moving the BL_ArmatureConstraint constant docs from bge.types.rst to bge.logic.rst with the rest of the constants docs are.
2012-11-22 08:07:13 +00:00
Mitchell Stokes
5da6c02188
BGE Docs: Adding RM_* mode constants from KX_NavMeshObject.draw()
2012-11-22 08:01:02 +00:00
Mitchell Stokes
a660ebc16e
Moving the Armature Actuator constant docs from bge.types.rst to bge.logic.rst with the rest of the constants docs are. Not only is this more consistent, but it also makes Campbell's script happier.
2012-11-22 07:52:17 +00:00
Mitchell Stokes
6a5d5ed206
Some KX_CONSTRAINTACT_* constants were incorrectly documented as KX_CONSTRAINT_*.
2012-11-22 07:31:51 +00:00
Mitchell Stokes
8a62ec63c8
Adding docs for KX_NavMeshObject based on doc strings found in KX_NavMeshObject.cpp.
2012-11-22 07:24:00 +00:00
Mitchell Stokes
30a292b61f
BGE: KX_PhysicsObjectWrapper was not being used anywhere in the code base, but it was being maintained (style, docs, name changes, etc), so I'm removing it.
2012-11-22 07:08:02 +00:00
Campbell Barton
b7f5c1c121
more bge reference api docstrings, leaving KX_FontObject and KX_NavMeshObject as TODO.
2012-11-22 06:04:12 +00:00
Campbell Barton
89b0b0516e
bge camera axix actuator was undocumented and python had incorrect limits on this attribute.
2012-11-22 05:33:05 +00:00
Campbell Barton
9d0334bc74
add missing bgl and gpu api docstrings (found using docstring completeness checker)
2012-11-22 05:15:52 +00:00
Campbell Barton
3370e3ca43
doc corrections and add bge.types.KX_ArmatureSensor
2012-11-21 08:53:04 +00:00
Campbell Barton
7c3db355b1
remove ifdef'd bevel code, current bevel works better then the previous code.
...
reduce strlen check in texttool_suggest_add()
use 'del list[:]' rather then 'list[:] = []' in python scripts which clear lists.
2012-11-14 09:45:15 +00:00
Mitchell Stokes
093854e564
Docs update for r52164
2012-11-13 17:50:18 +00:00
Campbell Barton
955b5db5e9
build fix: recent commit broke building on 64bit linux
2012-11-12 03:37:28 +00:00
Campbell Barton
d22c5d4341
update to python api Gotcha
docs to reflect changes to the api. also add a section about modifying linked library data.
2012-11-12 03:23:47 +00:00
Campbell Barton
250109f5ac
add argument so recent bge function mesh.transform_uv() so you can optionally transform between UV1 / UV2
2012-11-10 10:26:39 +00:00
Campbell Barton
fecc3b9d68
add 2 new utility functions to the BGE mesh py api.
...
mesh.transform(matid, matrix)
mesh.transform_uv(matid, matrix, uv_index=-1))
much more efficient then looping over verts in python to transform them.
2012-11-10 09:45:43 +00:00
Mitchell Stokes
f6a110d6ea
BGE: Committing patch [ #32697 ] "New BGE gravity API" by HG1.
...
This patch adds a gravity attribute to KX_Scene.
2012-11-10 03:11:18 +00:00
Mitchell Stokes
f840bd4a9f
BGE: This patch adds a character wrapper (similar to the already implemented vehicle wrapper) to control character physics options. Currently supported options are:
...
* jump() -- causes the character to jump
* onGround -- specifies whether or not the character is on the ground
* gravity -- controls the "gravity" that the character physics uses for the character
More options could be added (such as jump speed, step height, make fall speed, max slope, etc).
2012-11-04 20:56:02 +00:00
Campbell Barton
7353f8d58e
remove unneeded string in datatoc.c and correct some of the context types in our documentation.
2012-11-03 09:14:06 +00:00
Campbell Barton
d24278635a
auto-generated py api now shows bpy.context.* items in the 'References' section of each type.
2012-11-03 07:28:51 +00:00
Campbell Barton
aeba4950c3
style cleanup
2012-10-27 10:42:28 +00:00
Campbell Barton
7c846bbe75
add section on how to run scripts in blender for the API intro, found there were no simple docs like this in the wiki.
...
also set the window type to normal on start when -p argument is given, since the view could be maximized/fullscreen.
2012-10-24 16:55:06 +00:00
Benoit Bolsee
4213eca5fc
BGE VideoTexture: add depth buffer access to ImageViewport and ImageRender.
...
2 new attributes to ImageViewport and ImageRender object:
depth: set to True to retrieve the depth buffer as an array of float
(not suitable for texture source).
zbuff: set to True to retrieve the depth buffer as a grey scale pixel array
(suitable for texture source).
A new mode 'F' is added to VideoTexture.imageToArray() to allow returning the image
buffer as a one dimensional array of float. This mode should only be used to retrieve
the depth buffer of ImageViewport and ImageRender objects.
Example:
viewport = VideoTexture.ImageViewport()
viewport.depth = True
depth = VideoTexture.imageToArray(viewport,'F')
# show depth of bottom left pixel
# 1.0 = infinite, 0.0 = on near clip plane.
print(depth[0])
2012-10-20 22:28:44 +00:00
Jiri Hnidek
13d829e57d
* Fix small bug in Python operator example; improved example of modal operator
2012-10-12 18:19:39 +00:00
Campbell Barton
b1c4809f50
rename BGE KX_GameObject attrs
...
* group -> group_parent
* members -> group_children
so its more clear what direction the relationship is.
2012-10-09 06:03:57 +00:00
Campbell Barton
8d2835b5e5
patch [ #31875 ] Patch to get scene access through a game object
...
from Jay Parker (battery)
2012-10-09 05:58:09 +00:00
Campbell Barton
acf3a2790e
api changelog for 2.64 and 2.63 (which I missed last release)
2012-10-09 01:07:08 +00:00
Campbell Barton
7614428c09
style cleanup: pep8
2012-10-08 10:03:01 +00:00
Campbell Barton
d5de816a15
patch [ #32791 ] Spelling mistakes corrected.
...
from Sunny Gogoi (darkowlzz)
2012-10-07 03:26:30 +00:00
Mitchell Stokes
7beff06950
BGE: Committing patch [ #31442 ] "API improvements: Group references python api, for better control over groups and instances" by Martin Sell (moerdn). This patch adds a member and a group property to KX_GameObject:
...
* KX_GameObject.member returns the list of group members if the object is a group object, otherwise None is returned
* KX_GameObject.group returns the group object that the object belongs to or None if the object is not part of a group
2012-10-07 00:09:02 +00:00
Campbell Barton
d8144ef0f5
style cleanup: comment blocks
2012-10-04 13:26:15 +00:00
Alex Fraser
27c4c1f417
Added example of KX_GameObject subclassing to game engine docs.
2012-10-02 14:15:02 +00:00
Campbell Barton
721c37072e
uncomment data identifiers from sphinx docs (own error made r41509)
2012-09-03 02:08:56 +00:00
Campbell Barton
3ec93e8c35
doc type correction
2012-08-22 15:04:11 +00:00