Notifications
Clear all

[Closed] Question about calculate object's transform

Hi,
I have a question about calculate object’s relative transform,below is the example,my goal is if already known A B D transform,and then calculate transform of C.(Only 1 object)
Step1:
A is the origin position:
$.transform=(matrix3 [1,0,0] [0,1,0] [0,0,1] [-6.73854,2.42588,0])

1
Step2:
Rotate to B and get the transform,the rotation from A to B will as the same as D to C
$.transform=(matrix3 [0.952429,0,0.304761] [-0.220837,0.689144,0.690153] [-0.210025,-0.724624,0.656361] [-6.73854,2.42588,0])
2
Step3:
Here we got the rotation from A to B,then if we move and rotate to D,how can we calculate the C transfom?
(The rotation from A to B is the same as rotation from D to C),

D
$.transform=(matrix3 [0.0651236,-0.797472,0.599832] [-0.282903,0.56169,0.777477] [-0.956935,-0.220326,-0.189028] [118.907,-43.5499,9.50972])

C is the goal,how to get the transform via maxscript based on known rotation?(rotated from D to C)
$.transform=(matrix3 [0.325481,-0.837303,0.439301] [0.498458,0.546739,0.672768] [-0.803494,-2.08616e-007,0.595313] [118.907,-43.5499,9.50972])

3

1 Reply

If you are looking for the offset transform try:

obj1.transform * inverse obj2.transform