Luca Bonavita
8d3a5a8b0a
== python api docs ==
...
* source/blender/python/doc/sphinx_doc_gen.py:
changed the "undocumented" message so that it still links to
http://wiki.blender.org/index.php/Dev:2.5/Py/API/Documentation/Contribute
but uses flags in the url to help documenting.
Example: http://www.blender.org/documentation/250PythonDoc/bpy.ops.node.html#bpy.ops.node.link
click on "contribute", the new section has title "bpy.ops.node.link" and a howto message is shown
* source/blender/python/intern/bpy.c:
fixed a typo
2010-06-15 02:06:01 +00:00
Campbell Barton
a2461a01c9
change to recent commit, insert_keyframe(datapath -> data_path ...)
...
made region width and height unsigned
2010-06-14 12:36:28 +00:00
Campbell Barton
c2f36a4d6a
naming changes
...
path -> filepath (for rna and operators, as agreed on with elubie)
path -> data_path (for windowmanager context functions, this was alredy used in many places)
2010-06-14 03:52:10 +00:00
Campbell Barton
aa97b4362b
bugfix [ #22427 ] settings bpy.context.active_object gives wrong message.
2010-06-14 02:05:37 +00:00
Campbell Barton
374d3a6685
bugfix [ #21748 ] KX_Object scaling property not "writing" vector access .:. e.g. obj.scaling[2] = 2.0
...
- made worldspace readonly
- mathutils 'set' callbacks can now set their own error
2010-06-14 01:41:43 +00:00
Campbell Barton
971e4be108
modify my last commit to fix [ #22486 ] add_actuator crashes when name is bigger than 32 chars
...
Throwing an exception if the strings too long means scripts need to be aware of string lengths and changing a string length in RNA can too easily break scripts.
Instead honor the string length in RNA_property_string_set()
2010-06-12 17:30:21 +00:00
Campbell Barton
c3c6fb2de2
bugfix [ #22486 ] add_actuator crashes when name is bigger than 32 chars
...
have pyrna raise an error on strings that are too long.
2010-06-12 15:49:01 +00:00
Luca Bonavita
dba99b544b
== python api docs ==
...
* source/gameengine/PyDoc/bge.types.rst:
KX_PolygonMaterial was missing the parent class indication (PyObjectPlus)
* source/blender/python/doc/sphinx_doc_gen.py:
* unified all the "undocumented" descriptions, like
http://www.blender.org/documentation/250PythonDoc/bpy.ops.anim.html#bpy.ops.anim.keyframe_delete_button
so that it will be easy for Alex to CCS 'em and also now people will have a link to contribute descriptions,
see http://wiki.blender.org/index.php/Dev:2.5/Py/API/Documentation/Contribute
* moved the note about bpy_struct not being available in the api
in a proper note directive, so that it's more evident
(I didn't see it at first)
2010-06-11 22:41:13 +00:00
Tamito Kajiyama
df0b629e24
Merged changes in the trunk up to revision 29409.
2010-06-11 17:17:02 +00:00
Campbell Barton
dd72ffe3ff
py/rna api:
...
- bpy.context wasnt being created from the python bpy.types.Context type defined in bpy_types.py (bpy.context.copy() failed for eg.)
- bpy.context.copy() was returning C defined methods like FloatProperty(), which are not useful in this case, removed.
2010-06-09 19:31:10 +00:00
Campbell Barton
4da179749e
- [ #22492 ] [29159] commit breaks importing of script file that has a reload to self in it
...
broke when including the blend path in the modules filename.
- new function BLI_path_basename(), matches pythons os.path.basename().
replace a number of cases where BLI_split_dirfile was being used to get the filename only.
2010-06-05 21:19:59 +00:00
Campbell Barton
556b57febf
get rid of some warnings,
...
removed NG_LoopBackNetworkDeviceInterface::GetNetworkVersion(), wasnt used anywhere.
2010-06-05 15:31:55 +00:00
Luca Bonavita
677a0434a4
== python api docs ==
...
- small change to indicate the source file we use the proper :file: directive and we link to proper file in svn
check for example http://www.blender.org/documentation/250PythonDoc/bpy.ops.cloth.html#bpy.ops.cloth.preset_add
after you rebuild the docs
2010-06-04 13:47:56 +00:00
Tamito Kajiyama
ca6f7ddd99
Merged changes in the trunk up to revision 29184.
2010-06-03 15:39:02 +00:00
Luca Bonavita
e58bb562d2
== python api docs ==
...
* source/blender/python/doc/sphinx_doc_gen.py
changed syntax for declating attributes type to use :type: instead of *type* os it
* source/gameengine/Ketsji/KX_PythonInit.cpp
While documenting I've found that we have two naming conventions for constraints in BGE python api,
example: KX_CONSTRAINTACT_DIRPZ and KX_ACT_CONSTRAINT_FHPX: the right convention is KX_CONSTRAINTACT_xxx
After talking with dalai and cambpell we agreed that this kind of change is better suited for NExyon GSoC
so I marked as TODO
Also, found 2 duplicate rows, fixed after askin nexyon
* source/gameengine/PyDoc/bge.logic.rst
there were 2 blocks for constraints, I've put them together in docs and fixed some other lines
* source/gameengine/PyDoc/bge.types.rst
first cleanup: mainly started using ":type:", it was mixed usage of *type* and **type**
started cleaning some bullet list in a way that varibles link to the constant in appropriate page
I'll continue later
2010-06-02 21:28:17 +00:00
Campbell Barton
cb26b4d7b9
error in last commit
2010-06-02 19:37:53 +00:00
Campbell Barton
9cbbc9d3af
rename some rna properties filename --> filepath
...
* filename == "foo.ext"
* filepath == "/path/to/and/including/foo.ext"
this was alredy followed in some places not not everywhere.
2010-06-02 17:58:28 +00:00
Campbell Barton
b1a96f76dc
include the blendfile name when executing python scripts, so when using libraries you can tell where the script is stored which raises an error.
2010-06-02 14:40:58 +00:00
Campbell Barton
1658a28a58
- Python console argument '--python-console', option so you can start blender and drop into a python console, (useful for debugging some problems on a renderfarm over ssh)
...
- Also made it so sys.stdin isnt overwritten anymore, instead the interactive consoel overwrites while it executes and restores after.
- removed hope folder from sphinx patch path
2010-05-30 14:05:58 +00:00
Campbell Barton
941c10a296
optional fallback argument for vector angle function.
...
vec1.angle(vec2, fallback)
in my experiences most uses of this function required a try/except so better to allow a fallback value.
2010-05-30 01:42:04 +00:00
Alex Sytnik
286f167845
== Sphinx Doc Gen ==
...
Workaround to address attribute description issue.
In resulting .rst file attribute's descriptions appeared
not indented which sphinx considered as anoter blocks.
2010-05-30 00:24:32 +00:00
Dalai Felinto
c6bec43330
reverting previous commit from Mitchell. His commit went to the trunk instead of the branch :)
...
svn merge -r 29067:29066 https://svn.blender.org/svnroot/bf-blender/trunk/blender
2010-05-29 21:31:57 +00:00
Mitchell Stokes
9d3157eed0
Reversing the last merge because I botched it.
2010-05-29 21:22:24 +00:00
Tamito Kajiyama
dbcb73c033
Merged changes in the trunk up to revision 28911.
2010-05-21 22:01:47 +00:00
Campbell Barton
25e740f29d
bpy.app.background - so a python script can check if blender is running without a UI
2010-05-18 15:57:51 +00:00
Campbell Barton
88743740b8
dont use a thread for baking in background mode, its not really any advantage since it starts a single thread that runs a loop.
2010-05-18 14:38:25 +00:00
Campbell Barton
45444ceee3
include game engine docs in sphinx doc generation:
...
bge.events, logic, render & types (others still need work)
Updated http://www.blender.org/documentation/250PythonDoc
2010-05-17 20:38:54 +00:00
Campbell Barton
dbb914becc
blf docstring fix from Moguri
2010-05-17 07:33:37 +00:00
Campbell Barton
c2ffcb8497
no functional changes
...
- add PySequenceMethods members (all NULL)
- spaces -> tabs
- cmake syntax warning from recent ghost commit
2010-05-16 10:09:07 +00:00
Tamito Kajiyama
cfc351afee
Merged changes in the trunk up to revision 28772.
2010-05-14 21:50:15 +00:00
Campbell Barton
c598d90899
Sphinx theme from Alex Sytnik (smerch) for API Docs
...
You wouldnt know its not blender.org :D
http://www.blender.org/documentation/250PythonDoc/mathutils.html
from revision 39 of https://svn.blender.org/svnroot/blend-doc/trunk/python/doc
2010-05-14 10:21:57 +00:00
Campbell Barton
e8408697de
bpy.utils.blend_paths(absolute=False) (was Blender.GetPaths in 2.4x)
2010-05-11 07:08:32 +00:00
Campbell Barton
a2166e5bc1
make python keyframe insert and delete functions use keyword arguments
2010-05-10 18:47:03 +00:00
Campbell Barton
6d8cb93f71
building docs failed when the output directory didnt alredy exist.
2010-05-09 17:18:57 +00:00
Tamito Kajiyama
1e30f00030
Merged changes in the trunk up to revision 28685.
2010-05-09 12:42:19 +00:00
Campbell Barton
d92751fb33
missing arg from docstring
2010-05-09 00:37:12 +00:00
Campbell Barton
d73af20b7a
py/rna: defining new properties now replaces the old onces and raises an error if they collide with dynamic props.
2010-05-09 00:06:35 +00:00
Campbell Barton
5548e86795
function to remove property
...
eg:
bpy.types.Scene.IntProperty(attr="myprop") # adds
bpy.types.Scene.RemoveProperty(attr="myprop") # removes
2010-05-08 23:34:54 +00:00
Matt Ebb
9084df418d
Warning cleanup
...
While I was looking in outliner.c, made some changes to let extra passes display
there such as environment (commented out before due to a previous limitation).
Also changed outliner object visbility/selectability/renderability toggles to use
RNA buttons so you can insert keyframes with RMB menu etc.
2010-05-07 03:44:34 +00:00
Tamito Kajiyama
8a20433f0f
Merged changes in the trunk up to revision 28600.
2010-05-05 22:57:58 +00:00
Campbell Barton
b63d069055
[ #22177 ] Adding BLF to the BGE and exposing BLF_load as blf.load
...
from Mitchell Stokes (moguri)
also updated blf docs
2010-05-05 06:38:49 +00:00
Campbell Barton
02b8995bae
clear warning
2010-05-04 07:26:57 +00:00
Campbell Barton
914d5e5f62
sphinx doc generation
...
- include default values as well as min/max.
- partial rebuilds, so we dont have to build all docs each time, only the changed files.
2010-05-03 15:52:15 +00:00
Tamito Kajiyama
a1d0913afe
Merged changes in the trunk up to revision 28536.
2010-05-02 23:10:22 +00:00
Campbell Barton
124c55fcc3
remove redundant argument from mathutils callbacks
2010-04-27 19:21:36 +00:00
Campbell Barton
f9fbfd9297
oversight in recent mathutils update. obj.matrix = obj.matrix would call its own updage callbacks until it crashed.
2010-04-27 18:55:25 +00:00
Campbell Barton
e40531991d
fixes for euler order setting when the rotation mode is not euler.
2010-04-27 07:50:31 +00:00
Campbell Barton
5e2a9770f5
bugfix [ #22163 ] Add->mesh->torus is broken
...
recent commit broke this, missed changing double to float.
2010-04-26 21:25:14 +00:00
Campbell Barton
6bb55fd93e
py/rna, euler objects order is now wrapped correctly...
...
eg:
eul = bpy.context.object.rotation_euler
eul.order = 'XZY' # will update the objects setting.
2010-04-26 21:04:42 +00:00
Campbell Barton
4fc4fb9bfb
rna/python mathutils module
...
- return euler rotation values from rna now have correct rotation order.
- mathutils.Euler stored rotation order off by 1. (didnt work at all)
- Euler/Quat/Color sliceing working again.
2010-04-25 23:33:09 +00:00