Perfect!
On 25 November 2012 12:24, Frederich Munch <[email protected]> wrote: > This is most likely caused by calculations (on the camera rig) being > done in local space (using translate values). > Easiest solution [below] just steals x,y,z positions from the sampled > curve and put's them in the camera's translation. > The most reliable solution would be to fix the rig to do a look-at > calculation in world-space...but I leave that exercise to someone else. > > set cut_paste_input [stack 0] > version 6.3 v4 > push $cut_paste_input > Axis2 { > translate {0 0 -38} > name Target > selected true > xpos -932 > ypos -355 > } > Camera2 { > inputs 0 > translate {{parent.CurveSampler2.world_matrix.3 i} > {parent.CurveSampler2.world_matrix.7 i} > {parent.CurveSampler2.world_matrix.11 i}} > rotate > {{degrees(atan((Target.translate.y-translate.y)/sqrt(pow2(sqrt(pow2(Target.translate.x-translate.x)+pow2(Target.translate.z-translate.z)))))) > i} {"Target.translate.x-translate.x >= 0 ? > 270-degrees(atan((Target.translate.z-translate.z)/(Target.translate.x-translate.x))): > -degrees(atan((Target.translate.z-translate.z)/(Target.translate.x-translate.x)))-270" > i} 0} > focal_point > {{sqrt(pow2(sqrt(pow2(sqrt(pow2(Target.translate.x-translate.x)+pow2(Target.translate.z-translate.z)))))+pow2(Target.translate.y-translate.y)) > i}} > name TargetCamera > tile_color 0xff0000ff > selected true > xpos -1034 > ypos -272 > } > GT_Curve3D { > inputs 0 > Points 1 > npoints 7 > pt0 {-7.579999924 3.640000105 3.5} > pt1 {-4.300000191 2.539999962 0.6000000238} > pt2 {2.599999905 7 0} > pt3 {11.85000038 2.950000048 0.1000000015} > pt4 {17.10000038 -9.300000191 0} > pt5 {33.79999924 -8.800000191 0} > pt6 {46.79999924 -2.700000048 0} > name Curve3D3 > selected true > xpos -1161 > ypos -441 > } > push 0 > GT_CurveSampler { > inputs 2 > useMatrix true > name CurveSampler2 > selected true > xpos -1151 > ypos -345 > } > > > > _______________________________________________ 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
