Hello everyone,
I'm trying to run cameraProjectionMatrix for every frame, but I'm having
some issues with nuke.frame() updating. It's odd, it will iterate through
each frame but cameraProjectionMatrix only gets the value for the frame you
are on when you start the function. I tried
rewriting cameraProjectionMatrix so it uses getValueAt() instead of just
getValue(). But the key value seems to be the Camera's transform inverted,
and if you try getValueAt on that one it changes the output to a float
equaling 0.0, when it's suppose to give you a Matrix4.
Anyone ever run into this before? Any ideas on how to get
cameraProjectionMatrix to run on every frame?
for frame in range(firstframe, lastframe):
nuke.frame(frame)
camMatrix = nukescripts.snap3d.cameraProjectionMatrix(cameranode)
print frame, camMatrix
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python