Pulling Relative Transforms
Caleb J. Howard
calebh at adelphia.net
Sat Jul 10 20:59:31 EDT 2004
Does anyone have a snippit of code to pull the relative transform
between different objects?
In geo1->sop1, I want to find the position of geo2->sop2 in local
coordinates. (a la the UVTexture SOp's "Perspective from Camera" option)
I have the feeling that I can use getWorldTransform() on geo1 and geo2,
invert one, and multiply the matrices together to get the right
cumulative transform, but I thought I'd throw the question out to all
you experienced folks, in case there's a more direct method, or in case
one of you has the code at hand.
Being as slow as I am, it tends to take me hours to accomplish what I
suspect would take one of you folks seconds.
Caleb J. Howard - calebh at adelphia.net (home) - caleb at rhythm.com (work)
'It was for this you were called, created, formed and made.'
More information about the Sidefx-devkit-list