Hi Stella,<br><br>I'm looking at script I wrote recently to do something similar to what you're doing, I see that I also have this keyword in camera instantiation as well: north_vector=[0., 0., 1.].<br>You might need to manually set the north vector for the stead_north to work properly.<br>
<br>Also, it looks like in my script I did not supply a rot_vector, so it just rotated about north.  If simply adding the north_vector kwarg doesn't work, you might also try that.<br><br>Britton<br><br><div class="gmail_quote">
On Tue, Nov 8, 2011 at 11:16 AM, Stella Offner <span dir="ltr"><<a href="mailto:soffner@cfa.harvard.edu">soffner@cfa.harvard.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Britton,<br>
<br>
Thanks. I did try that and it didn't seem to fix the problem:<br>
cam = pf.h.camera(c, L, W, Nvec, tf, fields=["log_den"], steady_north=True)<br>
I'm also zoomed pretty far into the volume, so maybe that has something to do with it?<br>
<br>
Stella<br>
<br>
<br>
Britton Smith wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hi Stella,<br>
<br>
I think all you have to do is add the "steady_north=True" keyword arg to the camera instantiation and you should be all set.<br>
<br>
Britton<br>
<br></div><div class="im">
On Tue, Nov 8, 2011 at 10:35 AM, Stella Offner <<a href="mailto:soffner@cfa.harvard.edu" target="_blank">soffner@cfa.harvard.edu</a> <mailto:<a href="mailto:soffner@cfa.harvard.edu" target="_blank">soffner@cfa.harvard.<u></u>edu</a>>> wrote:<br>

<br>
    Hi,<br>
<br>
    I'm making a volume rendering movie and I'm encountering an issue<br>
    with the rotate function. I'm iterating over a call to<br>
    cam.rotate(angle, rot_vector=north), with a fixed angle and north<br>
    vector. However, the  output images rotate about that axis for a<br>
    few frames and then switch  north vectors and rotate about a<br>
    different north. I'm using a yt version I installed a couple weeks<br>
    ago, so its pretty up to date. Do you know what could be going on?<br>
<br>
    for j in range(1,76):                             cam.rotate((3.14*2.0/75.0), rot_vector=[0, 0, 1])<br>
             vals = cam.snapshot()<br>
             image_file = "%s_st%i_%i_%i_%i_box_%i.png" % (pf, star,<br>
    xrot, yrot, zrot, ifile+j)<br>
             write_bitmap(vals, image_file)<br>
<br>
    Thanks,<br>
    Stella<br>
    ______________________________<u></u>_________________<br>
    yt-users mailing list<br></div>
    <a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a> <mailto:<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.<u></u>spacepope.org</a>><br>
    <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/<u></u>listinfo.cgi/yt-users-<u></u>spacepope.org</a><br>
<br>
<br>
------------------------------<u></u>------------------------------<u></u>------------<div class="im"><br>
<br>
______________________________<u></u>_________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/<u></u>listinfo.cgi/yt-users-<u></u>spacepope.org</a><br>
  <br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
______________________________<u></u>_________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/<u></u>listinfo.cgi/yt-users-<u></u>spacepope.org</a><br>
</div></div></blockquote></div><br>