<div dir="ltr"><div><div>Hi,<br><br></div>Without checking your file, from the sounds of things, this is a problem which Rigify and/or Rigamarule (Bassam's tool) address. Namely, they allow you to create a "template" rig for defining the mapping between a basic editable rig and the full autogenerated rig, with all generated bones adjusted to work with the moved joints. It'd probably be worth taking a look there to get an idea of how they do this. Perhaps you can even manage to find a way to use these tools for your purpose?<br>

<br></div>Hope that helps,<br>Joshua<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Oct 14, 2013 at 11:10 PM, Gaia <span dir="ltr"><<a href="mailto:gaia.clary@machinimatrix.org" target="_blank">gaia.clary@machinimatrix.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi;<br>
<br>
=== The setup ===<br>
<br>
This is the demo blend file for my issue:<br>
<a href="http://www.pasteall.org/blend/24589" target="_blank">http://www.pasteall.org/blend/24589</a><br>
<br>
The blend file contains:<br>
<br>
- the target rig<br>
- a demo character attached to the target rig<br>
- the development rig<br>
- a script that attempts to make the intended rig adjustments (but fails)<br>
<br>
- The development rig has deform bones and a huge amount of control bones.<br>
- The Target rig has only the deform bones (and an attached human character)<br>
<br>
The target rig has been reposed slightly and a new restpose has been<br>
defined on it. So that the deform bones of both rigs no longer match<br>
exactly in rest pose.<br>
<br>
=== The Task ===<br>
<br>
Now i want to move the character from the target rig "back" to the<br>
development rig without modifying the development rig. That is i want to<br>
adjust the target rig so that it matches the development rig. But the<br>
character shall follow these adjustments (via its weight maps)<br>
<br>
My manual workflow for doing this is:<br>
<br>
- Select the target rig and go to pose mode<br>
- move the tail of each limb of the target rig to the corresponding tail<br>
in the development rig<br>
- Adjust the target rig bones using "scale" until all bones match<br>
visually the pose bones of the development rig.  I omit scaling the leaf<br>
bones because these bones have arbitrary lenghts. While adjusting the<br>
target rig, my character mesh rescales correctly due to its weight maps<br>
and due to the rot/scale constraints of its bones.<br>
- Apply the target rig's armature modifier<br>
- Rig the character to the development rig.<br>
<br>
==== The Goal ====<br>
<br>
Now i want to do this workflow by using a script. My problem is how i<br>
can correctly adjust the pose bones of the target rig to match the pose<br>
bones of the development rig. The embedded script in the blend file does<br>
not work. As it does not reposition the bone tails of the limbs. This is<br>
where i am actually stuck. (How to reposition the pose bone bone tails)<br>
<br>
Thanks for any help how this can be implemented.<br>
<br>
cheers,<br>
Gaia<br>
_______________________________________________<br>
Bf-animsys mailing list<br>
<a href="mailto:Bf-animsys@blender.org">Bf-animsys@blender.org</a><br>
<a href="http://lists.blender.org/mailman/listinfo/bf-animsys" target="_blank">http://lists.blender.org/mailman/listinfo/bf-animsys</a><br>
</blockquote></div><br></div>