Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem opening multiple files at once #1

Open
fredauski opened this issue Dec 2, 2024 · 1 comment
Open

Problem opening multiple files at once #1

fredauski opened this issue Dec 2, 2024 · 1 comment
Assignees

Comments

@fredauski
Copy link

I have a custom command style_dd to style .cube files that contain a difference density, which is defined as:

alias style_dd volume $1 style surface level 0.0025 color #CC0022 level -0.0025 color #CCBE00

Adding an Open Command entry for the Gaussian cube grid and the regex \.cisdp\d*\.cube works, but only if I open a single file at a time.

When I select two .cube files to open at the same time, the Open Command is not being run, as it is set to parent, which in Chimerax is called group by default:

image

Changing the mode to children applies the style_dd command, but to the two surfaces of the .cube grid itself, resulting in an error:

image image

Is there a way to resolve this? Maybe I am misunderstanding something about how to select the models?

Thanks in advance, I enjoy your tool quite a lot!

@ajs99778
Copy link
Owner

ajs99778 commented Dec 3, 2024

Thanks for reporting this. It looks like there's an issue with how OpenCommands is applying filters. When parent is selected, it will run the commands only if the top-level parent model matches the criteria (group in this case), and when children is selected, it will run the command on the surface models that are children of the cube models. I think there are probably workarounds for these cases, but I'll work on a patch for this.

@ajs99778 ajs99778 self-assigned this Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants