Commit Graph

543 Commits

Author SHA1 Message Date
Benjy Cook
ddbfcacfa0 Added some simple feedback for long processes, currently being printed to the console 2011-07-19 16:52:47 +00:00
Benjy Cook
7c4aed7fa6 Even more bugfixes for retarget, for various types of special cases. 2011-07-18 19:33:11 +00:00
Benjy Cook
0dcc7d05ab Bugfixing for retargeting - unconnected bones now retarget alot better. Also some placeholder code for a fix scale operator 2011-07-18 18:44:54 +00:00
Benjy Cook
19aaadcbab Small bugfix for prior commit - Removing constraints no longer causes an error 2011-07-16 13:48:43 +00:00
Benjy Cook
351a603874 Keyframing Motion capture properties now works for the Point constraint. Also, Floor constraint has been implemented, using Object's raycasting function in Python 2011-07-16 13:36:47 +00:00
Benjy Cook
04e028a0c5 Bugfix: Retargeting now works when user rig bones are not connected to their parents. 2011-07-15 10:07:02 +00:00
Benjy Cook
b3714ec8ed Bugfix: Baking mocap constraints now works for user created IK bones 2011-07-14 13:26:23 +00:00
Joerg Mueller
d9cf985730 Merging trunk up to r38329. 2011-07-12 13:09:22 +00:00
Campbell Barton
dbc9e36f72 make python3.3 compatible, __class__ is no longer in the class methods namespace. 2011-07-11 05:50:49 +00:00
Campbell Barton
301e5b4ea0 fix for various python bugs and remove unused var. 2011-07-10 17:26:15 +00:00
Campbell Barton
b62a956cc8 cleanup for python scripts - unused vars and imports 2011-07-10 12:51:37 +00:00
Benjy Cook
c749a42a8e Some optimizations and coding style improvements across the retargeting and constraint scripts 2011-07-09 21:52:25 +00:00
Benjy Cook
46f938e70b Added baking/unbaking functionality to constraint system. Retargeting now adds/manages 2 new NLA Tracks as planned. Modified bl_operatores/nla.py slightly to use it instead of creating my own bake function (now supports baking to a specific action, vs always creating a new one), but this does not break using the function in the old way. 2011-07-07 20:46:35 +00:00
Benjy Cook
eb6ac55e93 pep8 compliance for python scripts 2011-07-06 14:20:38 +00:00
Benjy Cook
2367220108 Changed creation of original location targets to be created only if needed for IK (i.e. user's decision) 2011-07-06 14:19:54 +00:00
Benjy Cook
120e5a3417 Cosmetic changes to UI. Also, added option to mark which bones should be planted when calculation new root translation (i.e. which bones are feet) 2011-07-06 13:31:13 +00:00
Benjy Cook
ebbcae36b3 Coding style and cosmetic changes to mocap constraints module 2011-07-06 13:29:31 +00:00
Benjy Cook
89d7b9a0a6 Added a small useful operator: Fix Armature Rotate. It fixes the common issue with mocap files that sometimes are rotated around the wrong axis 2011-07-06 13:27:40 +00:00
Joerg Mueller
3f3c6f5f1f Merging from trunk up to r38119. 2011-07-05 13:54:25 +00:00
Benjy Cook
04c03db6af Added One-Sided distance constraint. Also fixed some bugs and syntax in constraint and retarget scripts 2011-07-05 10:56:34 +00:00
Benjy Cook
90e8b83b45 Added denoising function. Uses a type of median filter to smooth out spikes, typical of sensor noise in motion capture data 2011-07-05 10:55:35 +00:00
Benjy Cook
a552d8e610 Finished Freeze constraint, and target space option for Freeze and Point constraints. 2011-07-04 11:35:29 +00:00
Benjy Cook
e358064704 Added smoothing variables to constraint creation, and now Active checkbox is functional.Also initial work was done on the freeze constraint. 2011-07-03 21:25:54 +00:00
Benjy Cook
775ab37ad5 Fixed some issues with stride bone and original empty creation and parenting. Now there is no longer a constraint cycle issue when using IK constraints 2011-07-03 21:23:41 +00:00
Campbell Barton
22bb09d018 fix for error when moving module, broke fracture tools and select internal face operator. 2011-07-03 04:28:41 +00:00
Benjy Cook
8c3f2923fd Early commit of mocap constraint work. Still very much a WIP, but Point constraints should work - but buggy. 2011-07-02 18:24:05 +00:00
Campbell Barton
2c66ab12e9 minor pep8 edits 2011-07-01 12:33:34 +00:00
Campbell Barton
093af18bfd fix for own error in script edits, broke bpy_extras.mesh_utils.ngon_tesselate 2011-06-30 16:06:30 +00:00
Campbell Barton
8f89e7a309 incorrectly had CMake storing directory names as filepaths
also correct compiler warning for collada and remove print from own last commit.
2011-06-29 13:16:11 +00:00
Campbell Barton
d86d68d4e6 console autocomp import now excludes '_' prefixed variables and the results are sorted. 2011-06-29 10:47:43 +00:00
Campbell Barton
c19d2d2da2 bug [#27779] Python console completion broken
modified auto-completion, though this may need to become a preference.
The problem is:
- including _all_ text as a prefix can take a lot of space, and isnt too readable.
- including only the previous word is error prone because detecting delimiters can fail when editing strings.

so I've set it to only include the last part of the string but align to the cursor to make it more readable.
2011-06-29 06:06:59 +00:00
Benjy Cook
ff5dbbe1b8 Some bugfixing and tweaking for retargeting. Script works now regardless of world transform on performer and end user rigs. This breaks stride bone functionality, will be addressed in next commit 2011-06-27 12:48:30 +00:00
Benjy Cook
17da597cc8 Added IK functionality to retargeting. If rig contains an IK constraint, in addition to FK retarget it will place and keyframe the IK targets correctly 2011-06-26 19:54:29 +00:00
Benjy Cook
5663d85e56 Some bugfixing and coding styles changes suggested by ideasman_42. 2011-06-25 23:50:50 +00:00
Benjy Cook
6c33d3f00d Bugfixing and modification to ensure functionality when called from UI. Related to previous commit, 37796. 2011-06-24 17:11:54 +00:00
Joerg Mueller
11c0ee5c76 Merged with trunk r37717. 2011-06-21 21:10:36 +00:00
Campbell Barton
eaae38551f pep8 compliance 2011-06-21 17:17:51 +00:00
Joerg Mueller
207911bdb3 Merge with trunk r37677 2011-06-20 22:55:18 +00:00
Campbell Barton
2d01cb5b27 fix for error caused with module relocation - broke loading ngons in OBJ files 2011-06-18 11:40:44 +00:00
Benjy Cook
c9360a4c1e Added calculation to determine change in root translation when retargeting - needs cleanup/optimization 2011-06-17 11:47:45 +00:00
Campbell Barton
7cbc4c0dd7 IDProperty python module update
- add support for IDProp array slicing, but not resizing.
- rename array attribute type to typecode and use chars 'f', 'd', 'i' which match pythons array module. (was using int's which only have a meaning internally).
- rename function 'convert_to_pyobject' to 'to_dict' and 'to_list' for IDProp group and array types respectively.
- remove 'len' array attribute, calling len(array) is fine.
2011-06-17 05:45:46 +00:00
Campbell Barton
62ba2d4c68 Changes to quick explode
- fix python error when the object had an empty material slot
- initialize start frame from the current frame
- set frame range to 300000 max (which is blenders own maximum)
- mesh order was arbitrary, instead use selected -> active, removed invert option.

also fix for missing include in bpy_extras.view3d_utils
2011-06-15 00:16:30 +00:00
Joerg Mueller
8ff0c2e107 Merge with trunk r37475. 2011-06-14 12:06:21 +00:00
Campbell Barton
90d8fcb522 improved autocompleation when there is a common prefix 2011-06-11 17:03:26 +00:00
Campbell Barton
9cf0bbb95c added a check to console auto-compleation for pythons struct_seq type, so bpy.app and sys.float_info autocompleate their attributes rather then bring treated as a typle. 2011-06-10 09:44:27 +00:00
Campbell Barton
1f56eee953 fix [#27495] Incorrect result of image name autocompletion 2011-06-10 07:22:35 +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
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