Merged changes in the trunk up to revision 39896.
This commit is contained in:
@@ -1539,7 +1539,7 @@ Game Types (bge.types)
|
||||
Return the value matching key, or the default value if its not found.
|
||||
:return: The key value or a default.
|
||||
|
||||
.. method:: playAction(name, start_frame, end_frame, layer=0, priority=0 blendin=0, play_mode=ACT_MODE_PLAY, layer_weight=0.0, ipo_flags=0, speed=1.0)
|
||||
.. method:: playAction(name, start_frame, end_frame, layer=0, priority=0, blendin=0, play_mode=ACT_MODE_PLAY, layer_weight=0.0, ipo_flags=0, speed=1.0)
|
||||
|
||||
Plays an action.
|
||||
|
||||
@@ -1556,7 +1556,7 @@ Game Types (bge.types)
|
||||
:arg blendin: the amount of blending between this animation and the previous one on this layer
|
||||
:type blendin: float
|
||||
:arg play_mode: the play mode
|
||||
:type play_mode: KX_ACTION_PLAY, KX_ACTION_LOOP, or KX_ACTION_PING_PONG
|
||||
:type play_mode: KX_ACTION_MODE_PLAY, KX_ACTION_MODE_LOOP, or KX_ACTION_MODE_PING_PONG
|
||||
:arg layer_weight: how much of the previous layer to use for blending (0 = add)
|
||||
:type layer_weight: float
|
||||
:arg ipo_flags: flags for the old IPO behaviors (force, etc)
|
||||
|
||||
57
doc/python_api/rst/info_tips_and_tricks.rst
Normal file
57
doc/python_api/rst/info_tips_and_tricks.rst
Normal file
@@ -0,0 +1,57 @@
|
||||
###############
|
||||
Tips and Tricks
|
||||
###############
|
||||
|
||||
Some of these are just python features that scripters may not have thaught to use with blender.
|
||||
|
||||
|
||||
****************
|
||||
Use The Terminal
|
||||
****************
|
||||
|
||||
For Linux and OSX users this means starting the terminal first, then running blender from within it. on Windows the terminal can be enabled from the help menu.
|
||||
|
||||
********************
|
||||
Run External Scripts
|
||||
********************
|
||||
|
||||
|
||||
******************
|
||||
Don't Use Blender!
|
||||
******************
|
||||
|
||||
|
||||
******************
|
||||
Use External Tools
|
||||
******************
|
||||
|
||||
|
||||
**************
|
||||
Bundled Python
|
||||
**************
|
||||
|
||||
Blender from blender.org includes a compleate python installation on all platforms, this has the disadvantage that any extensions you have installed in you're systems python wont be found by blender.
|
||||
|
||||
There are 2 ways around this:
|
||||
|
||||
* remove blender python subdirectory, blender will then look for the systems python and use that instead **python version must match the one that blender comes with**.
|
||||
|
||||
* copy the extensions into blender's python subdirectry so blender can access them, you could also copy the entire python installation into blenders subdirectory, replacing the one blender comes with. This works as long as the python versions match and the paths are created in the same location relative locations. Doing this has the advantage that you can redistribute this bundle to others with blender and/or the game player, including any extensions you rely on.
|
||||
|
||||
********
|
||||
Advanced
|
||||
********
|
||||
|
||||
|
||||
===================
|
||||
Blender as a module
|
||||
===================
|
||||
|
||||
|
||||
============================
|
||||
Python Safety (Build Option)
|
||||
============================
|
||||
|
||||
=================
|
||||
CTypes in Blender
|
||||
=================
|
||||
Reference in New Issue
Block a user