GetFullTransform() interaction with bones
Posted: Mon Jul 25, 2005 4:35 am
GetFullTransform appears to work perfectly for normal layer hierarchies. It also works great when the document is supplied as the last argument, factoring in the camera's effects on the layer.
Unfortunately it looks like I'm missing the effects of bones. The script reference says GetFullTransform includes the effects of parent layers. I assume this means bone layers too.
Outside of the complex combination of scripts and animation I'm doing, I set up a simple comparison to test how bones interact with the layer transform. The only difference was adding a trivial bone animation as a parent to the layer. Case 1: without the bones: I get the expected transform. Case 2: with the bones I get the same transform as before, rather than the bone modified one that I'm looking for. Non-bones animation works fine; given a frame I get the transform I expect with animated effects of all parents.
My first explanation was that the bones are not getting updated. I tried calls to SetCurFrame and UpdateCurFrame before calling GetFullTransform but it didn't change the result. I explored the bones related classes and nothing looks appropriate. I'm not sure if the bones do need to be updated or if there is some other way to get them to factor into the layers' transforms. I've got to be missing something simple. All help is greatly appreciated!!
Unfortunately it looks like I'm missing the effects of bones. The script reference says GetFullTransform includes the effects of parent layers. I assume this means bone layers too.
Outside of the complex combination of scripts and animation I'm doing, I set up a simple comparison to test how bones interact with the layer transform. The only difference was adding a trivial bone animation as a parent to the layer. Case 1: without the bones: I get the expected transform. Case 2: with the bones I get the same transform as before, rather than the bone modified one that I'm looking for. Non-bones animation works fine; given a frame I get the transform I expect with animated effects of all parents.
My first explanation was that the bones are not getting updated. I tried calls to SetCurFrame and UpdateCurFrame before calling GetFullTransform but it didn't change the result. I explored the bones related classes and nothing looks appropriate. I'm not sure if the bones do need to be updated or if there is some other way to get them to factor into the layers' transforms. I've got to be missing something simple. All help is greatly appreciated!!