Page MenuHome

Pose Mode: Flip Pose Transform
Needs ReviewPublic

Authored by Campbell Barton (campbellbarton) on Mar 19 2021, 7:20 AM.

Details

Summary

Support flipping a pose, useful when animating symmetrical rigs.

This is similar transforming a pose with symmetry enabled, it need not be used as part of transforming.

Optionally use the 3D cursor as an origin to flip root poses
that aren't located near the objects origin which would otherwise
flip them along the objects local X axis.


Motivation

This patch adds functionality to flip an entire pose on the X axis using a symmetrical rig.

Currently the only way to do this is to copy the pose, then use paste-flipped, while this can work, it doesn't give much control and isn't as convenient to integrate into other tools.

tested with spring.blend

Alternative Solutions

An alternative approach could be to flip input values directly, see: D10781.

Limitations

This only flips transform channels, it's possible custom properties are used to control values which are not flipped.

Open Topics

  • Other pose channel settings could be handled (curved bone roll, ease ... etc).

Diff Detail

Repository
rB Blender
Branch
TEMP-POSE-FLIP (branched from master)
Build Status
Buildable 13625
Build 13625: arc lint + arc unit

Event Timeline

Campbell Barton (campbellbarton) requested review of this revision.Mar 19 2021, 7:20 AM
Campbell Barton (campbellbarton) created this revision.
Campbell Barton (campbellbarton) edited the summary of this revision. (Show Details)
Campbell Barton (campbellbarton) edited the summary of this revision. (Show Details)
  • Improve code-comments.
Sybren A. Stüvel (sybren) requested changes to this revision.Mar 19 2021, 11:17 AM

I think I haven't described the requirements clearly enough. The purpose was not to flip the current pose of the entire character, but to apply a pose Action from the pose library in a flipped way.
So for example, to have a set of hand poses in the library for only one hand (say the left one), and then for the animators to be able to apply these poses to the right hand. This is also what the Apply Flipped checkbox in the Pose Thumbnails add-on does.

This revision now requires changes to proceed.Mar 19 2021, 11:17 AM
  • Simplify, don't depend on display matrices
Campbell Barton (campbellbarton) retitled this revision from Pose Mode: Apply Visual Transform (Flipped) to Pose Mode: Flip Pose Transform.Mar 21 2021, 11:25 AM
Campbell Barton (campbellbarton) edited the summary of this revision. (Show Details)

After discussion with Sybren, direct action flipping would be more useful for the asset manager, submitted as a separate patch D10781: Action: flip action data using pose contents.

This patch has been simplified to an operator that can flip selected bones in pose mode (removing custom property support, and without using the bones visual transformation).

Campbell Barton (campbellbarton) edited the summary of this revision. (Show Details)