
Hello, Would it be possible to define a variable that represents the number of models? I want to make a chimerax script that aligns #1-#(N-1) to #N. For instance, if I have a script like this where N represents the number of models opened in ChimeraX and save it as test.cxc mm #1-#(N-1) to #N In bash, I can open my PDB files that are aligned to a crystal structure 1be9: chimerax *.pdb 1be9 test.cxc The number of models (N) will be a dynamic variable depending on how many PDB files I have. Thank you. Best, Siyoung ------------------ While writing, I figured the below would work. test.cxc: mm ~#1 to #1 In bash: chimerax 1be9 *.pdb test.cxc But I still want to ask this question to know whether it is possible to retrieve the number of models opened and set this to a variable in ChimeraX. Thanks.