No worries, although I think it was more verbose than what Adam wanted :)
On 09/02/2012 21:21, Shailendra Pandey wrote:
quite interesting discussion. Thanks dan for the detailed explaination
On 2/9/12, Adam Hazard<[email protected]> wrote:
This is the only suggestion I tried, because it seemed the easiest to
implement, and so far it looks like it is working. thank you very much.
-Adam
Colin Alway wrote:
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]
<mailto:[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]
<mailto:[email protected]>,
http://forums.thefoundry.co.uk/
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
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users
--
Dan Ring, Ph.D.
Research Engineer
The Foundry
6th Floor, The Communications Building,
48 Leicester Square,
London, WC2H 7LT, UK
Tel: +44 (0)20 7968 6828 - Fax: +44 (0)20 7930 8906
Web: www.thefoundry.co.uk
Email: [email protected]
The Foundry Visionmongers Ltd.
Registered in England and Wales No: 4642027
_______________________________________________
Nuke-users mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-users