- Home /
How to get the "real" key value (position, rotation, scale) of object after applying layer weight
How to get the "real" key value (position, rotation, scale) of object after applying layer weight?
ex: I make a animation x position from 0 to 10. After applying weight = 0.8. What is the real position? Is it 0 to 10*0.8 ???? Is there a standard formula for it?
Thanks in advance.
Another question,
Why the C# output weight of Base Layer is zero?
The API I used:
(controller.layers[j].defaultWeight).ToString()
it gives "0" in my BaseLayer.
It's weird. It should be "1" for the weight of BaseLayer.
Is there anything wrong?
---> It seems that this API is used for the layer after the first one, right?
Answer by chiuping · Apr 12, 2018 at 10:11 AM
I think the solution is to extract the immediately animation information.
C# Update function is called by each frame. So extracting data in this function is workable!