[yt-users] cam.rotate
John Regan
johnanthonyregan at gmail.com
Mon Nov 18 07:13:53 PST 2013
Hi All,
Just a quick question on rotation of the camera object. When I rotate the
camera I notice that the
center no longer stays at the focus. I'm running a script which zooms and
rotates an object in a timeseries fashion.
# Code snippet
cam = pf.h.camera(c, L, W, (N,N), transfer_function=tf,
north_vector=up,
no_ghost=True, steady_north=True)
#Rotate about the "Lperp" vector
theta = rotation*filenum
cam.rotate(theta, rot_vector=Lperp)
This pretty much works as I want but after a while a get an output like the
one attached with the central density no longer at the center. Is there a
way to keep the focus at "c".
Cheers,
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20131118/80cf8241/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Den13MaxRender_0046.png
Type: image/png
Size: 674050 bytes
Desc: not available
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20131118/80cf8241/attachment.png>
More information about the yt-users
mailing list