Writing a plugin behavior, (Apply() method of a modifier) I'm having trouble with setting the transform:
TTransform3D tr = tree->GetGlobalTransform3D(kCurrentFrame); tr.fTranslation.z = newZ; tree->SetGlobalTransform3D(tr);
This code should only move the object up or down, right? But when I use it on an object whose hotpoint is not at object center, then the object moves a bit in X and Y every time I adjust the camera's position. (Which has nothing to do with the object that has the modifier, but does force the modifier to recalculate.)
I found an old topic by DCG Eric that seems to mention a similar problem, but there was no reply:
old forum topic
What am I doing wrong??