The acos of the dot product of the two vectors. This only gives the "offset angle" not the direction. So it ranges from 0-180. If you need the axis of rotation it gets slightly more complex.
Regards, Thorsten Thorsten Kaufmann Head of Production ____________________________________ Mackevision Medien Design GmbH Forststra?e 7 D-70174 Stuttgart T +49 711 93 30 48 31 F +49 711 93 30 48 90 M +49 151 19 55 55 02 [email protected] http://www.mackevision.de Gesch?ftsf?hrer: Armin Pohl, Joachim Lincke, Karin Suttheimer HRB 243735 Amtsgericht Stuttgart ________________________________________ Von: [email protected] [[email protected]] im Auftrag von Florian Strobl [[email protected]] Gesendet: Freitag, 17. August 2012 18:26 An: Nuke Python discussion Betreff: [Nuke-python] getting the angle between to Axis nodes I seem to have completly forgotton my 11th grade math I'm trying to find to axis and add an axis inbetween those. position no problem (vec1 + vec2 /2) any idea tho how to get the rotation for that new Axis thanks Florian Strobl _______________________________________________ Nuke-python mailing list [email protected], http://forums.thefoundry.co.uk/ http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
