Set Layer Transform?
Posted: Sat Dec 19, 2015 3:13 pm
Is there any way to set a layer transform? Or, alternatively to get the rotation, scale and translation values of a transform?
Basically I'm wanting to take the transforms from a parent, remove them from the parent and apply them to the child. I see GetLayerTransform, but I don't see a SetLayerTransform, or a matrix variable in the Moho Layer. I do see the translation, scale and rotation values in the Moho Layer. I guess I can accumulate those, but it seemed like the tools were using the matrix. At this point I'm guessing that they're using the matrix for the world to screen tranformations only but I'm hoping someone can show me something simple that I'm overlooking.
Thanks.
Basically I'm wanting to take the transforms from a parent, remove them from the parent and apply them to the child. I see GetLayerTransform, but I don't see a SetLayerTransform, or a matrix variable in the Moho Layer. I do see the translation, scale and rotation values in the Moho Layer. I guess I can accumulate those, but it seemed like the tools were using the matrix. At this point I'm guessing that they're using the matrix for the world to screen tranformations only but I'm hoping someone can show me something simple that I'm overlooking.
Thanks.