Commit Graph

2902 Commits

Author SHA1 Message Date
Joshua Leung
da3802f559 Info Header: Non-blocking Info Messages
Reports (i.e. 'info' or 'errors') are now shown in the info header in place of the scene statistics if the last executed operator had some, with this info disappearing again once another operator is run (to show scene statistics again). 

For example, this means that info such as the the number of verts merged, or whether a Keying Set successfully inserted keyframes, etc. is now shown again somewhere, and that this is done in a non-blocking manner.

The current implementation is still a bit crude (i.e. lacking fancy polish), but is at least barebones functional. The todos...
* When more than 1 report message is generated by the last operator, there is currently a display of the number of reports. In future, it would be nice to be able to add a button beside this or make the label clickable with appropriate text indicating this (commented out atm) to show popup menu of all the reports...

* There could probably be some kind of coloured backdrop behind the text. Currently using standard box, but that has padding problems, and lacks visual interest.
* Timer based fade out/disappear?
2010-03-02 11:48:40 +00:00
Campbell Barton
29fc56b5bb bugfix [#21405] Error on loading of thumbnails from network renderer [27204] 2010-03-01 12:44:28 +00:00
Campbell Barton
d975351f51 parts of the Python API are unstable, big discalmer in API docs main page, API Docs title and interactive console banner. 2010-03-01 10:34:54 +00:00
Campbell Barton
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
Campbell Barton
c4f5624768 remove netrender reference from rigify 2010-02-28 23:25:00 +00:00
Campbell Barton
0e18035f82 remove so-called security patch,
this has been used by various projects but needs to be justified since it wont remove paths that also resolve to the CWD, "." for instance.
2010-02-28 17:11:42 +00:00
Campbell Barton
ed7f4f2e3c make BGL and BLF modile names lowercase 2010-02-28 14:57:26 +00:00
Campbell Barton
3bbf1917c5 python BLF module for drawing text, updated template to draw text in the 3D view. 2010-02-28 11:18:54 +00:00
Andrea Weikert
f9d24eab55 Partial Fix: [#21085] Sequencer file selector for movies is strange
* joined filename and directory to single rna entry for movie and sound sequence 
* PROP_FILENAME was missing in makesrna
* made seq->strip->data->name PROP_FILENAME rather than PROP_FILEPATH for the complete path
* also made seq->strip->data->name read only

Missing still: update of sequence length, start end frame etc..
2010-02-28 11:17:55 +00:00
Campbell Barton
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
Campbell Barton
7ab601747a patch from Andy Braham with some modifications
extracts zipfiles when installing add-ons
2010-02-27 22:36:37 +00:00
Martin Poirier
769eb45124 NetRender: Use threading mixin for master server. See if it solves latency issues that some people are having (always keep the stdout log from the master/client/slaves if you are reporting an issue). 2010-02-27 22:07:38 +00:00
Campbell Barton
3dd3e7321e store vars in py operators in the instance rather then the operator classes. 2010-02-27 14:54:45 +00:00
Campbell Barton
15db857628 rename flag for auto script execution since scriptlinks are no more. 2010-02-27 01:47:46 +00:00
Campbell Barton
10dbf6faee rename extension to addon after discussion with meta-androcto & mindrones 2010-02-26 14:28:29 +00:00
Campbell Barton
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
Martin Poirier
d616286ffb Adding back decorator (metaclass registration not in trunk yet) 2010-02-26 12:15:15 +00:00
Campbell Barton
878d8b44ee remove rna functions image.get_export_path() and image.get_abs_filename(), filename functions should not be spesific to images.
rename BKE_get_image_export_path() to BKE_rebase_path() and take a filename arg rather then an image.

obj export file copy was also not working because of a missing import.
2010-02-26 11:50:59 +00:00
Janne Karhu
cf4ba30f79 Few small hair dynamics goodies:
* Effectors now work with hair dynamics.
* Hair dynamics has a new "Collider Friction" parameter that works similarly to internal friction except now all collision objects effect the hair velocity. Useful for quick'n'dirty interaction with objects as the calculations are really fast, but doesn't really take away the need for proper hair-object collisions.
2010-02-26 03:24:21 +00:00
Martin Poirier
59e2fdbf31 Netrender: check if library and image files exist before adding as dependency. 2010-02-26 02:37:31 +00:00
Campbell Barton
0b33be5a7b select parent/child in object mode with [] keys, like pose mode.
also needed to extend the RNA api to allow C to set enums without meaningful values.
2010-02-25 15:41:46 +00:00
Campbell Barton
57baa94631 fix for warnings, add back pose relax into the pose menu. 2010-02-25 15:10:27 +00:00
Joshua Leung
4b80d4e60d AnimViz (Motion Paths + Ghosting) panels are registered so that they will show up in a sensible location in the properties window. Also made these panels collapsed by default. 2010-02-25 12:01:43 +00:00
Campbell Barton
99b288da96 view selected now uses boundboxes of dupli-objects and ignores centerpoints of the instance objects when it has duplis. view selected also working again for selected paint mask faces. 2010-02-24 20:11:35 +00:00
Campbell Barton
a9307a4dd3 [#21295] Escape key doesn't cancel python modal operators
also fix distance with lamps being negative for typed in values.
2010-02-24 15:56:27 +00:00
Campbell Barton
03590eb8a9 allow cloth sim for linked duplicates, not many people use this but we need for using hair on linked characters, if there are bugs with this we'll need to fix so enabling for now with comments that its experemental. 2010-02-24 15:35:15 +00:00
Campbell Barton
de78240e1e [#21324] mdd import script ported to 2.5
2.4x port by Ivo Grigull (loolarge) 

from the tracker:

It should be working ok, but it does not have all options that the old script had. You can only specify the start frame
where to insert the animation, but not skip frames for have a different fps.

However, like the old script this will bloat the memory a bit, at some later point i would like to write a script that
only reads the current frame from the file when you move the timeline.
2010-02-24 11:03:22 +00:00
Campbell Barton
55d0ae8ed9 - use search box for adding actions in the NLA
- use less complicated string conversion for saving keymaps
2010-02-23 19:32:32 +00:00
Campbell Barton
0dd58a27e9 - py-drivers were not using the name lookup cache.
- use manager context for keymap script.
2010-02-23 16:40:55 +00:00
Campbell Barton
9e2e528c36 - finally a way to force removal of images (Shift+Click on the X)
- generic modal operator now works with int's
2010-02-23 15:34:02 +00:00
Campbell Barton
78bb45931c scene.render_data -> scene.render
bpy.types.SceneRenderData -> bpy.types.RenderSettings

better do these changes before there are too many scripts out.
2010-02-23 12:48:35 +00:00
Campbell Barton
97bdfe6f1b pep8 cleanup + correction for external player operator return value. 2010-02-22 23:32:58 +00:00
Nathan Vegdahl
2b9740bc3b Made a more generic rig type for giving animators direct control over shape keys. With this rig type you can attach shape keys both to the transforms of the bone and any number custom properties on the bone. 2010-02-22 18:07:16 +00:00
Campbell Barton
85b7e19805 game settings wasnt checking if the scene has a world set (giving python errors while drawing) 2010-02-22 14:04:04 +00:00
Daniel Salazar
f5cf555e6c Context for Object Align op = Object mode 2010-02-22 13:25:32 +00:00
Campbell Barton
d524f46335 [#21237] RAW triangle file importer
ported by Aurel W (aurel)

made adjustments to have this as a package in the extensions directory since this format isnt commonly used for interchanging data but still useful at times.
2010-02-22 13:21:09 +00:00
Campbell Barton
4ef1fd1078 game engine support for recording animation back & some other minor changes. 2010-02-22 12:25:58 +00:00
Campbell Barton
bc3d96678d bugfix [#21233] Crash in pyapi, with new object.
pass the obdata as an argument rather then assigning later so as not to allow an invalid state.
2010-02-22 00:07:46 +00:00
Campbell Barton
d85191bd2d modal operator python template 2010-02-21 16:20:32 +00:00
Campbell Barton
0cc59b9bb7 generic modal operator to make adjusting almost any rna property with the mouse possible with a few lines.
Example which is similar to interactive lamp adjusting in 2.4x ...
  wm.context_modal_mouse(path_iter="selected_editable_objects", path_item="data.spot_size")

Added lamp Wkey menu back.
2010-02-21 14:05:02 +00:00
Campbell Barton
e3dba7d6f4 remove pep8 warnings 2010-02-21 10:56:14 +00:00
Campbell Barton
dd04e25a14 improved euler conversion, make sure new eulers are always compatible with the previous ones, means it doesnt result in bad interpolation. 2010-02-21 10:30:39 +00:00
Campbell Barton
5dd8d10336 [#20116] calculation problem in bvh_importer.py
from Martin K (martinbk)
2010-02-21 09:43:09 +00:00
Martin Poirier
b602c6b5fa Better code to prevent loading scripts from .blender/scripts
Treat user defined script dir (where loading from base dir is ok) differently than system dirs, where we only want to load from specific subdirs.
2010-02-20 22:57:49 +00:00
Campbell Barton
8aa56414d2 BVH import working again.
- euler/quat rotation option
- scale, startframe options back.
- fix for adding an armature which used operators can could fail, use the data api instead.
- remove old junk
2010-02-20 22:51:36 +00:00
Campbell Barton
1a07aa169e temp workaround for blender loading 2.4x scripts in ~/.blender/scripts 2010-02-20 22:12:27 +00:00
Campbell Barton
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
Campbell Barton
65a4dafcff fix for empty xyz axis text drawing ontop of everything. 2010-02-19 20:09:42 +00:00
Campbell Barton
3bf2715039 apply visual transform to pose
So constrainted bones can have their transform applied to their loc/scale/rot, then remove the constraints
2010-02-19 15:34:26 +00:00
Joerg Mueller
f09dc08523 Enabling AV-sync again. You can now choose between No sync, Frame Dropping or AV-sync. 2010-02-19 12:20:29 +00:00