How to gradually crop a volume with perframe command

Hi all, I would like to make a movie showing a volume gradually cropped along one axis .e.g. volume #1 region 0,0,0,410,375,336 (start) volume #3 region 0,0,0,410,375,31 (end). Could you please tell me how to provide the range in “perframe” command to perform this operation? Ie as trying something like this perframe "volume #1 region $1" 0,0,0,410,375,200 0,0,0,410,375,336 frames 10 without success though. Many thanks in advance, Edoardo ------------------------------------------------------ Dr. Edoardo D'Imprima Postdoctoral fellow Structural and Computational Biology Unit EMBL Heidelberg - Mahamid Group Meyerhofstraße 1 69117 Heidelberg Germany Phone: +49 6221 387-8531

Hi Edoardo, I think you want something like this: perframe "volume #1 region 0,0,0,410,375,$1" range 336,31 <https://rbvi.ucsf.edu/chimerax/docs/user/commands/perframe.html> <https://rbvi.ucsf.edu/chimerax/docs/user/commands/volume.html#dimensions> It worked nicely when I tried it on an example map. I hope this helps, Elaine ----- Elaine C. Meng, Ph.D. UCSF Chimera(X) team Department of Pharmaceutical Chemistry University of California, San Francisco
On Jun 24, 2022, at 4:45 AM, Edoardo D Imprima via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Hi all, I would like to make a movie showing a volume gradually cropped along one axis .e.g. volume #1 region 0,0,0,410,375,336 (start) volume #3 region 0,0,0,410,375,31 (end). Could you please tell me how to provide the range in “perframe” command to perform this operation? Ie as trying something like this perframe "volume #1 region $1" 0,0,0,410,375,200 0,0,0,410,375,336 frames 10 without success though. Many thanks in advance, Edoardo
participants (2)
-
Edoardo D Imprima
-
Elaine Meng