[chimerax-users] How to gradually crop a volume with perframe command

Elaine Meng meng at cgl.ucsf.edu
Fri Jun 24 11:39:23 PDT 2022


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 at 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




More information about the ChimeraX-users mailing list