Pulling Relative Transforms
mstory at xion.org
Thu Jul 15 10:41:57 EDT 2004
I don't know if you've already figured this out or not but I need to do
something similar to this in the next few days, if by chance you're
question isn't answered by then (the list is *so* quiet) I'll post my
Caleb J. Howard wrote:
> 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.
> Any hints?
> 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