Variables and conditional statements in the command line

Hello again, Are variables and conditional statements possible in the command line in any way? Thanks, Roden -- This message and its contents, including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.

Hi Roden, There is no generic programmability in the ChimeraX command language. You would have to resort to Python for that. Some specific commands have limited builtin programmability. For instance, the "perframe" command allows you to execute a series of commands where one or more arguments vary over (possibly different) numeric ranges. The "open" command has a "forEachFile" argument that can execute a command script on a series of files. But generically, no, the command language isn't programmable. --Eric Eric Pettersen UCSF Computer Graphics Lab
On Nov 5, 2024, at 9:05 AM, Roden Deng Luo via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Hello again,
Are variables and conditional statements possible in the command line in any way?
Thanks, Roden
This message and its contents, including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email._______________________________________________ ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/

I see. Thanks, Eric. Best, Roden On Tue, Nov 5, 2024 at 8:33 PM Eric Pettersen <pett@cgl.ucsf.edu> wrote:
Hi Roden, There is no generic programmability in the ChimeraX command language. You would have to resort to Python for that. Some specific commands have limited builtin programmability. For instance, the "perframe" command allows you to execute a series of commands where one or more arguments vary over (possibly different) numeric ranges. The "open" command has a "forEachFile" argument that can execute a command script on a series of files. But generically, no, the command language isn't programmable.
--Eric
Eric Pettersen UCSF Computer Graphics Lab
On Nov 5, 2024, at 9:05 AM, Roden Deng Luo via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Hello again,
Are variables and conditional statements possible in the command line in any way?
Thanks, Roden
________________________________ This message and its contents, including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email._______________________________________________ ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/
-- This message and its contents, including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.
participants (2)
-
Eric Pettersen
-
Roden Deng Luo