15f0907563
PyAPI Bugfix - Fix for crash on struct.path_to_id()
2010-03-14 11:44:24 +00:00
969b4673c7
Python/RNA: added collection.move(from, to) for python defined
...
collection properties.
2010-03-10 20:54:14 +00:00
0ef0caaedf
RNA/Python: support for layer subtype with BoolVectorProperty.
2010-03-10 20:33:57 +00:00
a53ef075ae
python api function for rna objects: object.as_pointer()
...
This means we can write low level apis in pyton or C where blender data is passed to external C modules without having to have blender support this directly.
Example use case is to get an image pointer then use ctypes to get the image buffer and pass it to a C image processing function.
2010-03-06 12:37:29 +00:00
f09efddcda
fix for minor errors/warnings
2010-03-03 13:59:57 +00:00
560de5e6e5
set the context on importing bpy module.
2010-03-03 08:56:48 +00:00
c0984d59cc
Delete keyframe API method now takes array_index = -1 to delete keyframes from entire arrays, as for insert keyframe.
...
Enabled the 'keyframe_delete' method for RNA structs.
2010-03-01 10:43:02 +00:00
fbb8672da4
replace operator options bl_undo and bl_register with bl_options
...
eg.
bl_options = {'REGISTER', 'UNDO', 'BLOCKING', 'GRAB_POINTER'}
This didnt exist when operators were originally wrapped.
2010-03-01 00:03:51 +00:00
b5d6d11abb
patch from Clark Gaebel, use const char * for buildinfo strings, also updated bpy_app.c
2010-02-28 22:48:50 +00:00
ed7f4f2e3c
make BGL and BLF modile names lowercase
2010-02-28 14:57:26 +00:00
3bbf1917c5
python BLF module for drawing text, updated template to draw text in the 3D view.
2010-02-28 11:18:54 +00:00
5369bd9c21
- template with an example of a modal operator drawing with opengl (draw a line on the screen)
...
- access to event.mouse_region_x/y
- basic type checking to callback functions (use PyCapsule names)
2010-02-28 09:36:02 +00:00
5c87e0580f
bugfix [ #21247 ] Controls holding numbers are not zeroed when empty string value is given to them
...
- dont import math as math and m, just import all members directly. (from math import *)
- was adding __builtins__ twice to the namespace
- account for unlikely but possibly failier to import math.
2010-02-27 22:53:37 +00:00
c76b6fcb06
utility function pyrna_enum_value_from_id for getting the enum from a string and raising an error if its invalid.
2010-02-27 15:28:34 +00:00
ddacff06f2
hold the python operator instance in the operator, otherwise the handelers need to be stored in the operator type or in the module which isnt nice for modal operators.
2010-02-27 14:44:46 +00:00
b6acf0bb48
python support for defining region drawing callbacks, while not directly related to operators, this means python can now make operators that draw in the 3D viewport interactively.
...
nicer then 2.4x space handelers because you can register draw handelers to draw pre/post 3d space or in pixel space.
2010-02-27 13:27:06 +00:00
820570031e
was using wrong global flag for python script disabling in recent commit.
2010-02-27 12:01:10 +00:00
15db857628
rename flag for auto script execution since scriptlinks are no more.
2010-02-27 01:47:46 +00:00
4e931482f4
option to set the blend file as from a 'Trusted Source' on load.
2010-02-27 01:27:22 +00:00
bbf6dde277
rna/py api
...
rename image.save() --> image.save_render() because it uses render settings for saving.
added image.save() which is like pressing save in the image view, saving to the images path and removing the dirty flag.
2010-02-26 12:28:44 +00:00
3f5786a00e
added support for proxies as drivers back.
2010-02-23 17:56:45 +00:00
0dd58a27e9
- py-drivers were not using the name lookup cache.
...
- use manager context for keymap script.
2010-02-23 16:40:55 +00:00
ca5e7113d3
allow python api to set values of library liked data (still checks editable flag)
...
+ improved exception messages.
2010-02-23 11:19:55 +00:00
4ef1fd1078
game engine support for recording animation back & some other minor changes.
2010-02-22 12:25:58 +00:00
e31d0198e6
exclude self references from the ID search list when PROP_ID_SELF_CHECK is set, also raise an error from python if this is attempted
2010-02-22 08:27:45 +00:00
6589038350
python rna api now clamps values, (was fun to see the spot_size go backwards)
...
Vector callbacks still missing clamp checks
2010-02-21 14:48:28 +00:00
1bb37bc10e
py api: bpy.props
...
new properties without any arguments were failing.
2010-02-21 12:15:38 +00:00
02e7871149
Mathutils API: Euler support for rotation order.
...
Examples.
euler = Euler(1, 2, 3)
euler.order = 'ZXY'
euler = matrix.to_euler('XZY')
Still missing rna support. this still wont give the right order, defaulting to XYZ.
eul = object.rotation_euler
2010-02-20 19:49:04 +00:00
0dc8026691
mostly fixed [ #21172 ] Reloading scripts leaks memory (F8)
...
the same properties were being registered many times with built in structs.
blender memory at least is not leaking, but it seems python is still not freeing some memory.
For the moment dont allow existing properties to be registered again, will need to have a way to unregister rna properties.
2010-02-17 21:58:08 +00:00
3c2d59e032
py/rna api property api functions crashed with empty args.
...
eg: bpy.props.BoolProperty()
2010-02-17 17:22:39 +00:00
0b3dfc441e
pyrna, adding back foreach functions from collections. they are needed!
2010-02-16 19:27:38 +00:00
aefe9be5db
[ #18961 ] Use const char * where appropriate (2.5)
...
from Sean Bartell (wtachi)
added own changes bpy_props.c
2010-02-16 16:47:41 +00:00
768f20d537
update for missing docs & dont include operator classes in sphinx docs.
2010-02-16 15:01:34 +00:00
d8ce09ce53
bugfix [ #21173 ] Autocompleate raises an error
...
split PropertyRNA off into 3 types, base type, collection and array, since array and collections needed internal checks inside almost every function its better to have the, as subclassed to the property type. This makes introspection more useful.
Also made printing of structs and properties prettier giveing type and length.
2010-02-15 23:43:51 +00:00
882af97b4b
classes were having their dictionary cleared when the blender extension data was freed which made re-registering fail.
...
now extensions can be enabled and disabled without having to reload them.
2010-02-15 11:24:43 +00:00
677386e53a
initial support for extensions in the user preferences
...
only one script at the moment:
[#20848 ] Blender Gears for 2.5 (for ideasman42)
from Michel Anders (varkenvarken)
2010-02-14 23:33:18 +00:00
39c04315e2
change python scripts so modules which register with blender have a register() function rather then making import automatically run the register functions (generally considered bad practice by python people)
2010-02-14 11:21:21 +00:00
e205acdbaa
strip quotes from Buildinfo for bpy.app.build_*
2010-02-12 21:45:47 +00:00
c7662c1cf7
Calling operators from Python with non-default context was broken (need to assign to the right variable).
2010-02-12 21:40:46 +00:00
533ed7cdaa
Python deprcated PyCObject, use PyCapsule instead.
2010-02-12 21:14:01 +00:00
081c1205a3
correct fsf address
2010-02-12 13:34:04 +00:00
8f4c340915
bpy.utils.home_paths, use this to get script paths for the user/local/system blender paths.
2010-02-11 14:08:22 +00:00
15ef07d684
More tooltip editing
2010-02-11 02:03:18 +00:00
c2b2ccde45
fix for python not being able to call operators with a executuon context.
2010-02-10 11:10:38 +00:00
52b1c37645
[ #21039 ] OBJ import Clamp Scale limited to .01 as lowest Value. Used to be Zero
...
[#21053 ] 2.5alpha0 export obj problem
+ some minor changes.
2010-02-09 19:22:57 +00:00
ec7df03c86
Warning fixes, one actual bug found in sequencer sound wave drawing. Also
...
changed some malloc to MEM_mallocN while trying to track down a memory leak.
2010-02-08 13:55:31 +00:00
fc123a40d3
patch [ #20889 ] Support "unit"s for FloatProperty
...
from Martin Bürbaum (pontiac)
(with own minor changes)
2010-02-02 23:03:56 +00:00
755569b020
errors in arg parsing from yesterdays commit
2010-02-02 12:10:13 +00:00
ecaa50ed7b
PROP_ANIMATEABLE -> PROP_ANIMATABLE (more common spelling)
2010-02-02 00:02:55 +00:00
039d087171
subtype support for properties in bpy.props.
2010-02-01 22:04:33 +00:00