Simple space switching.


#1

I have two controls that drive RotateX on an object.

I want to swap which parent the object is driven by, but also inherit it’s rotational value, rather than reset to what ever the other parents values are. How do I do this?

eg:
parent_01: rotateX = 0
parent_02: rotateX = 30

I rotate parent_01 to 50, then swap to parent_02 via an attribute. The child would then rotate back to 30, because parent_02 is different. I would like the child to stay at 50, but have the parents be switched so then I can rotate parent_02 and continue on from my 50.

I’m guessing this would be setup via an expression? Would it have something to do with this information in the attribute editor? This is the constraint selected:

The rotate X value there changes when I swap parents and inherits what ever is controlling it obviously.

Is fixing this as simple as I’d like to think? Can it be done with connections and nodes, or does it have to expression driven?


#2

Hi…!
You can connect the attribute on/off to switch on/off parent_1 constraint to the object or the parent_2 constraint to the object through connection editor and a reverse node or simply SDK it.
Rgds,


#3

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.