-
Applying inverse of global position and rotation to a null group
Hello–
I’m working through some projects that require me to have the ability to selectively lock the global position and rotation of a set of objects in my scene, by applying the inverse position and rotation to a null object that is parented to a duplicate group.
(In short, I’m modeling scenes in a virtual space that need to turn into real-world camera moves around miniatures. I’m trying to take scenes of multiple spaceships moving and rotating with moving cameras, and selectively lock transforms and rotations, so that, say, spaceship_1 is locked off entirely, but the relative positions of spaceship_1 and camera_1 remain the same, requiring camera_1 (and any other related scene lights, objects, and such) to perform the sum of their moves and the inverse of the spaceship_1 move)
I have built an xpresso tree to lock out the transform without too much trouble, but am having a hard time getting the rotation to lock. Basically, I can do one OR the other, but am having a hard time doing both. I created a duplicated of all the objects in the scene, took the global position of the object I want to transform in the original scene, ran it through 3 Math -> Divide nodes by -1, and applied that to the global position of Is there a feature somewhere that would do this more easily for me, or someone with a touch more xpresso knowledge that could lend a hand? Would be much appreciated.
r