is this what you want ? inputs: a 2d pivot point a 2d reference point a rotation slider
output: a 2d point rotating the reference around the pivot an expression for the destination point would be (pseudo-code): output.x = pivot.x + (reference.x - pivot.x) * cos( rotation ) - (reference.y - pivot.y) * sin( rotation ) output.y = pivot.y + (reference.x - pivot.x) * sin( rotation ) + (reference.y - pivot.y) * cos( rotation ) On 9 February 2012 02:01, Adam Hazard <[email protected]> wrote: > Anyone know how to have a rotation slider control a 2d point rotating > around another 2d point with an expression? > > Basically I want to know how the tracker derives rotation from 2 points, > but I guess in reverse. > > Or a way to hack this together by linking parameters. I haven't found a > solution. > > Thanks in advance > > -Adam > ______________________________**_________________ > Nuke-users mailing list > [email protected].**co.uk<[email protected]>, > http://forums.thefoundry.co.**uk/ <http://forums.thefoundry.co.uk/> > http://support.thefoundry.co.**uk/cgi-bin/mailman/listinfo/**nuke-users<http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users> > -- colin alway
_______________________________________________ Nuke-users mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
