Commit Graph

3376 Commits

Author SHA1 Message Date
Joshua Leung
f4b2e9b91d Added operator to make importing Keying Sets from files easier.
This can be found from the dropdown below the Add/Remove buttons in
the Properties Editor -> Scene -> Keying Sets panel.
2011-06-10 12:43:06 +00:00
Benjy Cook
e4500096a5 retarget.py updated with function to complete the retarget to the end user, with inheritance and bone roll taken under account 2011-06-09 12:30:24 +00:00
Joerg Mueller
ef5f78ecc7 3D Audio GSoC:
Making it possible to access blenders internal sounds via Python.
2011-06-05 22:06:29 +00:00
Joshua Leung
56e20eafe9 User Pref to not overwrite Recent Files list everytime you open a new
file

This is just a more formalised version of a local hack I've been
running locally for the past year now. It's especially useful when you
want to maintain your own set of recently opened test files (or
perhaps current project files), but then be able to quickly open some
.blend files downloaded from the web (i.e. checking out some bug
report, or how someone else sets up some node setup) without
loosing/polluting your existing recent files list as a result of doing
so, and having to either resort to some nasty methods to get it back.

Of course, this is still really hacky, as for instance, it means that
the currently opened file will not show up in the recent files list
for quick reload. However, that's why this is a userpref :)
2011-06-04 01:54:34 +00:00
Joerg Mueller
cd04cff180 Merge with trunk revision 37149. 2011-06-03 23:24:01 +00:00
Benjy Cook
fbff066a70 2nd commit of mine. Contains retarget.py, which has functions for retargeting an animated armature to a second one, given a user mapping of the hiearchy. Currently creates an intermediate skeleton that solves some of the major issues. WIP 2011-06-02 17:19:07 +00:00
Campbell Barton
dd0522242a addons now show expanded list again (since Brecht's commit now makes it fast)
also add utility function for getting cleaned, unique names from python: bpy_extras.io_utils.unique_name(...)
2011-06-02 15:21:47 +00:00
Joshua Leung
e3a46d05a7 Added operator to remove all useless unused actions from the current
.blend file.
* From operator search, find "Clear Useless Actions"
* "Action library" actions are preserved by this operator. It targets
actions without any F-Curves
* By default, only actions which are single-user (where that user is a
Fake user) will be targeted. This can be changed to have it target any
"dangling" action that doesn't have any F-Curves
* A save/reload cycle is still required to fully remove such Actions
from the current file. Though at least now it's a simpler process to
have these semi-automatically removed ;)
2011-06-02 13:03:46 +00:00
Brecht Van Lommel
36cbd78bc3 Fix #27490: export key configuration gave error when trying to export
properties from an unknown (e.g. removed) operator.
2011-06-01 14:35:14 +00:00
Campbell Barton
f51c9fa496 fix for mistake in case insensitive image load. 2011-05-31 09:55:50 +00:00
Campbell Barton
c141ed0aa9 missed this import when moving load image function. 2011-05-30 12:19:30 +00:00
Martin Poirier
a72f101ac8 [#25886] Skeleton Sketching - Unclear UI for converting sketches into bones
Thanks Ronan Ducluzeau for the fix and Jason van Gumster for the report.
2011-05-29 16:04:09 +00:00
Joerg Mueller
9cfd093a93 Merge with trunk r36987. 2011-05-29 00:48:03 +00:00
Campbell Barton
a9dd90be78 move load_image into image_utils and add some docstrings to bpy_extras module. 2011-05-28 09:34:45 +00:00
Campbell Barton
ecf2d1ff4e - generate sphinx docs for bpy_extras module
- add in support to doc generator for automatically generating docs for submodules.
2011-05-28 07:47:58 +00:00
Brecht Van Lommel
d369a6aaaf Windows installer and Path changes, fixing various issues:
* Windows installer not working for non-admin users and multiple users
* Addon scripts not installing next to user configuration
* Portable install not being taken into account in all places

The main problem was the windows installer was installing system scripts in
AppData next to the user configuration directory, which is not shared between
users. Now these are installed in ProgramFiles, and only addon scripts added
by the users go to AppData.

On all platforms, addon scripts were sometimes getting installed between
system scripts, because the scripts folder in the executable directory was
given precedence over the user configuration folder, that is no longer done
now. So addons now behave like user configuration, they are preserved even
if you download a newer build of the same blender version.

If you have an installation of 2.57 on windows, the addon install location
will not change until we do the version bump to 2.58, to avoid conflicts with
the existing the installed 2.57 version.

The old behavior of giving precedence to the local folder was done to support
portable install, where all configuration is written to the local folder. This
is now implemented differently: if and only if a "config" folder exists in the
local folder, portable install will be assumed, and files will only be written
to that local folder.
2011-05-27 09:57:53 +00:00
Campbell Barton
c6705e464f use a dynamic enum for addons, annoyingly the enum was being generated from python for each of the addon buttons (~14 times per draw) which was noticeably slow, so disabling 'expand' for now.
Eventually it would be good to have the expanded buttons all using the same result from itemf().
2011-05-26 18:11:59 +00:00
Campbell Barton
26252bb315 correct spelling error and some pep8 changes. 2011-05-26 09:33:51 +00:00
Campbell Barton
6466673a62 move less common mesh operations out of bpy_types into bpy_extras.mesh_utils 2011-05-26 07:16:56 +00:00
Benjy Cook
655fcfbcc0 First commit of mocap_tools.py, contains functions for Fcurve simplification and loop detection of anims 2011-05-25 10:42:57 +00:00
Campbell Barton
6a4a8854b5 lookup table for axis conversion was wrong in some places. 2011-05-24 12:55:29 +00:00
Joshua Leung
1788bc298c = Limit Distance Constraint - 'For Transform' Option =
The Limit Distance Constraint now has a "For Transform" option just
like all the other Limit constraints. This option controls whether the
constraint gets applied to interactive transforms in the 3D View too,
preventing controllers from getting large values without the animator
knowing.


Additional code changes:
* Split code to get constraint targets and grab their matrices for
solving out to a separate helper function:
get_constraint_targets_for_solving()
* Fixed a bug where "found constraint ...." prints would appear in the
console. Looks like some warning print that was forgotten

TODO:
* While coding this, I noticed potential division by zero bugs with
the Limit Distance constraint. Looking into these after this commit.
2011-05-24 12:12:12 +00:00
Joshua Leung
a5b07c0934 == Animated Transforms to Deltas ==
Added operator to convert animation for standard object transforms
(i.e. loc/rot/scale) to delta transforms.
This can be accessed from the Object -> Transform -> Animated
Transforms To Deltas menu entry in the 3D View.

Since the situation which causes this is quite common (especially for
motion-graphics type applications), where users animate some object
first and then decide to duplicate this and place it around the place
in different locations, it's probably important that we have some
support for this kind of thing. Newbies with the "help, all my anmated
duplicates disappear" problem are recommended to use this operator
from hereon in.

For reference of rationale, see:
http://blenderartists.org/forum/showthread.php?219126-Move-Existing-f
-Curve-to-delta-equivalent
2011-05-24 11:15:21 +00:00
Campbell Barton
4a989282d4 bpy_extras.io_utils.axis_conversion() was returning wrong matrix. 2011-05-24 08:11:51 +00:00
Campbell Barton
b222863336 fix [#27459] Flymode moves parent
for durian we had camera rigs which needed to have the parent transformed rather then the camera, for this reason I made fly mode fly the parent rather then the camera its self.

Make this a preference and use this for view camera/view locking too.
2011-05-23 02:53:30 +00:00
Thomas Dinges
2aa9c000ed Fix for [#27333] Translation constraint is broken.
Committing here a patch by Bastien Montagne (mont29), a more understandable Translation Constraint UI. 
Before: http://www.pasteall.org/pic/12578
Now http://www.pasteall.org/pic/12258

From the description: 
"When you set “X” under the Destination’s “Z”, it does not mean that the Z transform of the source should affect the X transform of the destination, but rather that the X transform of the source should affect the Z transform of the destination…"

The new UI should make it a bit more clear.
2011-05-20 18:26:44 +00:00
Thomas Dinges
8d8e42a451 2.5 Particle UI:
*In Particle Mode, there was no way to see what p-sys is being edited in the 3D View Tool bar, when having multiple ones. 
Changed List type to normal (with limit to 3 rows). Request by venomgfx. :)

* Removed redundant text info about disconnected hair from Particle UI.
2011-05-20 17:08:09 +00:00
Campbell Barton
4916c44af8 simplify window_to_3d_vector() and call it from viewline()
also update python view function to match.
2011-05-20 10:28:40 +00:00
Campbell Barton
c672b3fb67 [#27439] Console window doesn't hide on startup when presets are used (Windows)
only print preset load messages in when debug is enabled.
2011-05-20 00:21:38 +00:00
Guillermo S. Romero
b181368f52 SVN maintenance. 2011-05-19 20:22:35 +00:00
Campbell Barton
fbdd33f62d py/ui edit: change InputKeyMapPanel to be a mix-in class only (not a subclass of Panel), it messes up re-registering panels. 2011-05-19 09:52:11 +00:00
Campbell Barton
863b60e1b8 fix [#27432] [2.57/scripts/modules/bpy/path.py:169] can't concat bytes to str 2011-05-19 06:27:39 +00:00
Campbell Barton
32793a1395 add python access to mathutils.intersect_line_plane, update view3d_utils module to use it. 2011-05-19 04:28:09 +00:00
Campbell Barton
0c41635f85 fix for python module region_2d_to_vector_3d and region_2d_to_location_3d functions in ortho mode. 2011-05-18 15:57:20 +00:00
Campbell Barton
3929753794 added other addon category. 2011-05-17 09:13:14 +00:00
Peter Schlaile
70b832589a [PATCH] == Sequencer ==
This patch adds adjustment layer tracks to the sequencer and does some cleaning
up of the code.

What's an adjustment layer?

Think of it as an effect track, which takes no explicit input, but alters
the output of everything down the layer stack.

So: you can add several stages of color correction with it.

And: you can even use it with metastrips to group several adjustments together.
2011-05-16 17:14:47 +00:00
Campbell Barton
68dbfe6ac9 move generic bpy helper modules into bpy_extras. 2011-05-16 07:51:02 +00:00
Campbell Barton
6c8317ae8f new empty package to move bpy utility modules into. 2011-05-16 07:48:43 +00:00
Campbell Barton
617d69a627 rename wave texture_coordinate_object -> texture_coords_object to match Displace and Warp modifiers. 2011-05-16 05:50:04 +00:00
Campbell Barton
80c2582f0e enable game panel even if the BGE is disabled since its settings effect the viewport.
also remove unused function in creator.c and minor edit to search menu poll function.
2011-05-16 04:55:31 +00:00
Thomas Dinges
7459133648 Patch [#27344] 300+ New/changed tooltips by Davis Sorenson (dsavi). Thanks a lot!
Reviewed by Tom Musgrove and myself. 

From the patch description:
ValterVB on #blendercoders submitted a long list of missing tooltips in Blender, and I went through the list and added all I knew. After that I crowdsourced the rest by putting a spreadsheet on Google docs and having people fill in the missing ones that I didn't know. So if there's some weird tooltip in there that doesn't make sense, that's why.

Thanks to Wolter, spacetug and others on BlenderArtists for contributing tooltips.
2011-05-15 17:59:48 +00:00
Nathan Vegdahl
7e5ff01f4a Button for adding shape keys now creates shapes from base mesh instead of
from the current shape mix.  The old behavior is still accessable from the
menu as "New Shape From Mix".

Checked with Sergey and Bassam that this is a good change.  New users
expect the add shape button to simply add a new blank shape, and get
confused when that is not the case.  It is also really easy to
accidentally have other shape information in a new shape when the
"from mix" behavior is default.
2011-05-14 20:23:05 +00:00
Campbell Barton
e7db080565 option to have the view controls apply to the camera view (and camera object).
- follow rotate/pan/zoom/dolly operators.
- auto-depth preference works.
- smooth view navigation supported.
- view selected, all & numpad operator work too.

TODO
- deal with camera transform locked axis
- find a way to move/zoom the frame while the camera is locked (if it turns out to be a problem).
2011-05-14 17:50:33 +00:00
Campbell Barton
2f08309ffe window_to_3d_vector was incorrect but dolly view operator was accounting for it. fixed so result isnt negated and mouse coords dont need to be adjusted. 2011-05-12 06:52:24 +00:00
Campbell Barton
a131ce066a python utility module for converting between 2d/3d region/world coordinates. 2011-05-12 06:32:21 +00:00
Campbell Barton
2889f5ae2c camera composition guides: center, thirds, golden rule 2011-05-10 03:03:53 +00:00
Campbell Barton
885141c9de patch [#21740] Image support for Empty Objects
from Andy Braham (andybraham)

This adds support for empties to reference images and draw in the 3D view.

Modifications from the original patch.
- use an empty draw 'image' type
- use image aspect ratio for non-square-pixels
- when the image is not found, still draw the frame.
2011-05-09 16:31:54 +00:00
Campbell Barton
b432520799 fix [#27324] WindowManager.invoke_search_popup() crashes blender and does not work
also minor formatting fixes.
2011-05-08 12:51:05 +00:00
Sergey Sharybin
471c28f91c Fix #27319: Text editor "Find" does not locate words.
Added new option to find panel of space text which toggles
case-esensitive search.

Additional changes:
- Send NC_TEXT|NA_EDITED when removing markers in find_and_replace modifier
  this prevents "sticked" markers which disappears on first redraw when
  search text wasn't found
- Do not show "Text wasn't found" error when text to be searched is contained
  in the end of buffer and it's selected. Replacing/marking used to happen, but
  this popup message was really annoying for this case.

TODO: It's incorrect to use UI_GetThemeColor4ubv from this operator
2011-05-07 17:52:44 +00:00
Campbell Barton
e239085f70 io_utils.axis_conversion(...) utility function to easily convert the forward & up axis between different apps on import/export. 2011-05-07 11:25:59 +00:00